Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(680)

Side by Side Diff: android_webview/browser/renderer_host/aw_render_view_host_ext.h

Issue 22986033: [Android WebView] Add an API to toggle the JS navigator.online property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Really improve the test Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | android_webview/browser/renderer_host/aw_render_view_host_ext.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_
6 #define ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_ 6 #define ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_
7 7
8 #include "content/public/browser/web_contents_observer.h" 8 #include "content/public/browser/web_contents_observer.h"
9 9
10 #include "android_webview/common/aw_hit_test_data.h" 10 #include "android_webview/common/aw_hit_test_data.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // Sets the zoom level for text only. Used in layout modes other than 65 // Sets the zoom level for text only. Used in layout modes other than
66 // Text Autosizing. 66 // Text Autosizing.
67 void SetTextZoomLevel(double level); 67 void SetTextZoomLevel(double level);
68 68
69 void ResetScrollAndScaleState(); 69 void ResetScrollAndScaleState();
70 70
71 // Sets the initial page scale. This overrides initial scale set by 71 // Sets the initial page scale. This overrides initial scale set by
72 // the meta viewport tag. 72 // the meta viewport tag.
73 void SetInitialPageScale(double page_scale_factor); 73 void SetInitialPageScale(double page_scale_factor);
74 void SetBackgroundColor(SkColor c); 74 void SetBackgroundColor(SkColor c);
75 void SetJsOnlineProperty(bool network_up);
75 76
76 private: 77 private:
77 // content::WebContentsObserver implementation. 78 // content::WebContentsObserver implementation.
78 virtual void RenderViewCreated(content::RenderViewHost* view_host) OVERRIDE; 79 virtual void RenderViewCreated(content::RenderViewHost* view_host) OVERRIDE;
79 virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE; 80 virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE;
80 virtual void DidNavigateAnyFrame( 81 virtual void DidNavigateAnyFrame(
81 const content::LoadCommittedDetails& details, 82 const content::LoadCommittedDetails& details,
82 const content::FrameNavigateParams& params) OVERRIDE; 83 const content::FrameNavigateParams& params) OVERRIDE;
83 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 84 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
84 85
(...skipping 15 matching lines...) Expand all
100 AwHitTestData last_hit_test_data_; 101 AwHitTestData last_hit_test_data_;
101 102
102 bool has_new_hit_test_data_; 103 bool has_new_hit_test_data_;
103 104
104 DISALLOW_COPY_AND_ASSIGN(AwRenderViewHostExt); 105 DISALLOW_COPY_AND_ASSIGN(AwRenderViewHostExt);
105 }; 106 };
106 107
107 } // namespace android_webview 108 } // namespace android_webview
108 109
109 #endif // ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_ 110 #endif // ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/renderer_host/aw_render_view_host_ext.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698