OLD | NEW |
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 CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 RenderProcessHost* GetRenderProcessHost() const override; | 217 RenderProcessHost* GetRenderProcessHost() const override; |
218 RenderFrameHostImpl* GetMainFrame() override; | 218 RenderFrameHostImpl* GetMainFrame() override; |
219 RenderFrameHost* GetFocusedFrame() override; | 219 RenderFrameHost* GetFocusedFrame() override; |
220 void ForEachFrame( | 220 void ForEachFrame( |
221 const base::Callback<void(RenderFrameHost*)>& on_frame) override; | 221 const base::Callback<void(RenderFrameHost*)>& on_frame) override; |
222 void SendToAllFrames(IPC::Message* message) override; | 222 void SendToAllFrames(IPC::Message* message) override; |
223 RenderViewHost* GetRenderViewHost() const override; | 223 RenderViewHost* GetRenderViewHost() const override; |
224 int GetRoutingID() const override; | 224 int GetRoutingID() const override; |
225 RenderWidgetHostView* GetRenderWidgetHostView() const override; | 225 RenderWidgetHostView* GetRenderWidgetHostView() const override; |
226 RenderWidgetHostView* GetFullscreenRenderWidgetHostView() const override; | 226 RenderWidgetHostView* GetFullscreenRenderWidgetHostView() const override; |
| 227 SkColor GetThemeColor() const override; |
227 WebUI* CreateWebUI(const GURL& url) override; | 228 WebUI* CreateWebUI(const GURL& url) override; |
228 WebUI* GetWebUI() const override; | 229 WebUI* GetWebUI() const override; |
229 WebUI* GetCommittedWebUI() const override; | 230 WebUI* GetCommittedWebUI() const override; |
230 void SetUserAgentOverride(const std::string& override) override; | 231 void SetUserAgentOverride(const std::string& override) override; |
231 const std::string& GetUserAgentOverride() const override; | 232 const std::string& GetUserAgentOverride() const override; |
232 void EnableTreeOnlyAccessibilityMode() override; | 233 void EnableTreeOnlyAccessibilityMode() override; |
233 bool IsTreeOnlyAccessibilityModeForTesting() const override; | 234 bool IsTreeOnlyAccessibilityModeForTesting() const override; |
234 bool IsFullAccessibilityModeForTesting() const override; | 235 bool IsFullAccessibilityModeForTesting() const override; |
235 #if defined(OS_WIN) | 236 #if defined(OS_WIN) |
236 virtual void SetParentNativeViewAccessible( | 237 virtual void SetParentNativeViewAccessible( |
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1096 std::string canonical_encoding_; | 1097 std::string canonical_encoding_; |
1097 | 1098 |
1098 // True if this is a secure page which displayed insecure content. | 1099 // True if this is a secure page which displayed insecure content. |
1099 bool displayed_insecure_content_; | 1100 bool displayed_insecure_content_; |
1100 | 1101 |
1101 // Whether the initial empty page has been accessed by another page, making it | 1102 // Whether the initial empty page has been accessed by another page, making it |
1102 // unsafe to show the pending URL. Usually false unless another window tries | 1103 // unsafe to show the pending URL. Usually false unless another window tries |
1103 // to modify the blank page. Always false after the first commit. | 1104 // to modify the blank page. Always false after the first commit. |
1104 bool has_accessed_initial_document_; | 1105 bool has_accessed_initial_document_; |
1105 | 1106 |
| 1107 // The theme color for the underlying document as specified |
| 1108 // by theme-color meta tag. |
| 1109 SkColor theme_color_; |
| 1110 |
| 1111 // The last published theme color. |
| 1112 SkColor last_sent_theme_color_; |
| 1113 |
1106 // Data for misc internal state ---------------------------------------------- | 1114 // Data for misc internal state ---------------------------------------------- |
1107 | 1115 |
1108 // When > 0, the WebContents is currently being captured (e.g., for | 1116 // When > 0, the WebContents is currently being captured (e.g., for |
1109 // screenshots or mirroring); and the underlying RenderWidgetHost should not | 1117 // screenshots or mirroring); and the underlying RenderWidgetHost should not |
1110 // be told it is hidden. | 1118 // be told it is hidden. |
1111 int capturer_count_; | 1119 int capturer_count_; |
1112 | 1120 |
1113 // Tracks whether RWHV should be visible once capturer_count_ becomes zero. | 1121 // Tracks whether RWHV should be visible once capturer_count_ becomes zero. |
1114 bool should_normally_be_visible_; | 1122 bool should_normally_be_visible_; |
1115 | 1123 |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1272 // Adds/removes a callback called on creation of each new WebContents. | 1280 // Adds/removes a callback called on creation of each new WebContents. |
1273 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1281 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
1274 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1282 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
1275 | 1283 |
1276 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1284 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
1277 }; | 1285 }; |
1278 | 1286 |
1279 } // namespace content | 1287 } // namespace content |
1280 | 1288 |
1281 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1289 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |