diff options
author | Arvid Nilsson <anilsson@blackberry.com> | 2013-10-02 16:58:25 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-04 12:22:53 +0200 |
commit | f7842507b94bd21ce2ed3d4f0d34e8cd83a1731a (patch) | |
tree | 812aebc21ce476667ad94b46a9e5bd433cd86f4c /lib/web_contents_delegate_qt.h | |
parent | ef6cb53a1d49de616067126c8f49d2406c9a7f43 (diff) |
Add loadProgress API
This exposes loadProgress in both widget and quick webengineviews.
However, the progress will not change until we get an upstream change
in Chromium where the content LoadProgressChanged API is exposed to all
ports, not just Android. The upstream change is
https://src.chromium.org/viewvc/chrome?revision=221010&view=revision
Once we get that change, you'll see the widget example browser start to
paint a blue progress rectangle in the background of the URL bar. Also,
a progress bar was added to the quicknanobrowser, but it will be stuck
at 0 for now.
Change-Id: Icbaa01b86c013e0052b3abb7672c38e57128f44a
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
Diffstat (limited to 'lib/web_contents_delegate_qt.h')
-rw-r--r-- | lib/web_contents_delegate_qt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/web_contents_delegate_qt.h b/lib/web_contents_delegate_qt.h index 629fd5c6c..b9720eac2 100644 --- a/lib/web_contents_delegate_qt.h +++ b/lib/web_contents_delegate_qt.h @@ -62,6 +62,7 @@ public: virtual void NavigationStateChanged(const content::WebContents* source, unsigned changed_flags); virtual void AddNewContents(content::WebContents* source, content::WebContents* new_contents, WindowOpenDisposition disposition, const gfx::Rect& initial_pos, bool user_gesture, bool* was_blocked); virtual void LoadingStateChanged(content::WebContents* source); + virtual void LoadProgressChanged(content::WebContents* source, double progress); virtual void DidFailLoad(int64 frame_id, const GURL &validated_url, bool is_main_frame, int error_code, const string16 &error_description, content::RenderViewHost *render_view_host); virtual void DidFinishLoad(int64 frame_id, const GURL &validated_url, bool is_main_frame, content::RenderViewHost *render_view_host); virtual void DidUpdateFaviconURL(int32 page_id, const std::vector<content::FaviconURL>& candidates); |