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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <functional> | 10 #include <functional> |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 SkColor GetThemeColor() const override; | 250 SkColor GetThemeColor() const override; |
251 WebUI* CreateSubframeWebUI(const GURL& url, | 251 WebUI* CreateSubframeWebUI(const GURL& url, |
252 const std::string& frame_name) override; | 252 const std::string& frame_name) override; |
253 WebUI* GetWebUI() const override; | 253 WebUI* GetWebUI() const override; |
254 WebUI* GetCommittedWebUI() const override; | 254 WebUI* GetCommittedWebUI() const override; |
255 void SetUserAgentOverride(const std::string& override) override; | 255 void SetUserAgentOverride(const std::string& override) override; |
256 const std::string& GetUserAgentOverride() const override; | 256 const std::string& GetUserAgentOverride() const override; |
257 void EnableTreeOnlyAccessibilityMode() override; | 257 void EnableTreeOnlyAccessibilityMode() override; |
258 bool IsTreeOnlyAccessibilityModeForTesting() const override; | 258 bool IsTreeOnlyAccessibilityModeForTesting() const override; |
259 bool IsFullAccessibilityModeForTesting() const override; | 259 bool IsFullAccessibilityModeForTesting() const override; |
260 #if defined(OS_WIN) | |
261 void SetParentNativeViewAccessible( | |
262 gfx::NativeViewAccessible accessible_parent) override; | |
263 #endif | |
264 const PageImportanceSignals& GetPageImportanceSignals() const override; | 260 const PageImportanceSignals& GetPageImportanceSignals() const override; |
265 const base::string16& GetTitle() const override; | 261 const base::string16& GetTitle() const override; |
266 int32_t GetMaxPageID() override; | 262 int32_t GetMaxPageID() override; |
267 int32_t GetMaxPageIDForSiteInstance(SiteInstance* site_instance) override; | 263 int32_t GetMaxPageIDForSiteInstance(SiteInstance* site_instance) override; |
268 SiteInstanceImpl* GetSiteInstance() const override; | 264 SiteInstanceImpl* GetSiteInstance() const override; |
269 SiteInstanceImpl* GetPendingSiteInstance() const override; | 265 SiteInstanceImpl* GetPendingSiteInstance() const override; |
270 bool IsLoading() const override; | 266 bool IsLoading() const override; |
271 bool IsLoadingToDifferentDocument() const override; | 267 bool IsLoadingToDifferentDocument() const override; |
272 bool IsWaitingForResponse() const override; | 268 bool IsWaitingForResponse() const override; |
273 const net::LoadStateWithParam& GetLoadState() const override; | 269 const net::LoadStateWithParam& GetLoadState() const override; |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 int browser_plugin_instance_id) override; | 433 int browser_plugin_instance_id) override; |
438 GeolocationServiceContext* GetGeolocationServiceContext() override; | 434 GeolocationServiceContext* GetGeolocationServiceContext() override; |
439 WakeLockServiceContext* GetWakeLockServiceContext() override; | 435 WakeLockServiceContext* GetWakeLockServiceContext() override; |
440 void EnterFullscreenMode(const GURL& origin) override; | 436 void EnterFullscreenMode(const GURL& origin) override; |
441 void ExitFullscreenMode(bool will_cause_resize) override; | 437 void ExitFullscreenMode(bool will_cause_resize) override; |
442 bool ShouldRouteMessageEvent( | 438 bool ShouldRouteMessageEvent( |
443 RenderFrameHost* target_rfh, | 439 RenderFrameHost* target_rfh, |
444 SiteInstance* source_site_instance) const override; | 440 SiteInstance* source_site_instance) const override; |
445 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; | 441 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; |
446 scoped_ptr<WebUIImpl> CreateWebUIForRenderFrameHost(const GURL& url) override; | 442 scoped_ptr<WebUIImpl> CreateWebUIForRenderFrameHost(const GURL& url) override; |
447 #if defined(OS_WIN) | |
448 gfx::NativeViewAccessible GetParentNativeViewAccessible() override; | |
449 #endif | |
450 | 443 |
451 // RenderViewHostDelegate ---------------------------------------------------- | 444 // RenderViewHostDelegate ---------------------------------------------------- |
452 RenderViewHostDelegateView* GetDelegateView() override; | 445 RenderViewHostDelegateView* GetDelegateView() override; |
453 bool OnMessageReceived(RenderViewHost* render_view_host, | 446 bool OnMessageReceived(RenderViewHost* render_view_host, |
454 const IPC::Message& message) override; | 447 const IPC::Message& message) override; |
455 // RenderFrameHostDelegate has the same method, so list it there because this | 448 // RenderFrameHostDelegate has the same method, so list it there because this |
456 // interface is going away. | 449 // interface is going away. |
457 // WebContents* GetAsWebContents() override; | 450 // WebContents* GetAsWebContents() override; |
458 void RenderViewCreated(RenderViewHost* render_view_host) override; | 451 void RenderViewCreated(RenderViewHost* render_view_host) override; |
459 void RenderViewReady(RenderViewHost* render_view_host) override; | 452 void RenderViewReady(RenderViewHost* render_view_host) override; |
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1068 // A list of observers notified when page state changes. Weak references. | 1061 // A list of observers notified when page state changes. Weak references. |
1069 // This MUST be listed above frame_tree_ since at destruction time the | 1062 // This MUST be listed above frame_tree_ since at destruction time the |
1070 // latter might cause RenderViewHost's destructor to call us and we might use | 1063 // latter might cause RenderViewHost's destructor to call us and we might use |
1071 // the observer list then. | 1064 // the observer list then. |
1072 base::ObserverList<WebContentsObserver> observers_; | 1065 base::ObserverList<WebContentsObserver> observers_; |
1073 | 1066 |
1074 // True if this tab was opened by another tab. This is not unset if the opener | 1067 // True if this tab was opened by another tab. This is not unset if the opener |
1075 // is closed. | 1068 // is closed. |
1076 bool created_with_opener_; | 1069 bool created_with_opener_; |
1077 | 1070 |
1078 #if defined(OS_WIN) | |
1079 gfx::NativeViewAccessible accessible_parent_; | |
1080 #endif | |
1081 | |
1082 // Helper classes ------------------------------------------------------------ | 1071 // Helper classes ------------------------------------------------------------ |
1083 | 1072 |
1084 // Manages the frame tree of the page and process swaps in each node. | 1073 // Manages the frame tree of the page and process swaps in each node. |
1085 FrameTree frame_tree_; | 1074 FrameTree frame_tree_; |
1086 | 1075 |
1087 // If this WebContents is part of a "tree of WebContents", then this contains | 1076 // If this WebContents is part of a "tree of WebContents", then this contains |
1088 // information about the structure. | 1077 // information about the structure. |
1089 scoped_ptr<WebContentsTreeNode> node_; | 1078 scoped_ptr<WebContentsTreeNode> node_; |
1090 | 1079 |
1091 // SavePackage, lazily created. | 1080 // SavePackage, lazily created. |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1350 // Adds/removes a callback called on creation of each new WebContents. | 1339 // Adds/removes a callback called on creation of each new WebContents. |
1351 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1340 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
1352 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1341 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
1353 | 1342 |
1354 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1343 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
1355 }; | 1344 }; |
1356 | 1345 |
1357 } // namespace content | 1346 } // namespace content |
1358 | 1347 |
1359 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1348 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |