| 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 // have been removed. | 218 // have been removed. |
| 219 void RemoveAccessibilityMode(AccessibilityMode mode); | 219 void RemoveAccessibilityMode(AccessibilityMode mode); |
| 220 | 220 |
| 221 // Request a one-time snapshot of the accessibility tree without changing | 221 // Request a one-time snapshot of the accessibility tree without changing |
| 222 // the accessibility mode. | 222 // the accessibility mode. |
| 223 using AXTreeSnapshotCallback = | 223 using AXTreeSnapshotCallback = |
| 224 base::Callback<void( | 224 base::Callback<void( |
| 225 const ui::AXTreeUpdate&)>; | 225 const ui::AXTreeUpdate&)>; |
| 226 void RequestAXTreeSnapshot(AXTreeSnapshotCallback callback); | 226 void RequestAXTreeSnapshot(AXTreeSnapshotCallback callback); |
| 227 | 227 |
| 228 // Set a temporary zoom level for the frames associated with this WebContents. |
| 229 // If |is_temporary| is true, we are setting a new temporary zoom level, |
| 230 // otherwise we are clearing a previously set temporary zoom level. |
| 231 void SetTemporaryZoomLevel(double level, bool temporary_zoom_enabled); |
| 232 |
| 233 // Sets the zoom level for frames associated with this WebContents. |
| 234 void UpdateZoom(double level); |
| 235 |
| 236 // Sets the zoom level for frames associated with this WebContents if it |
| 237 // matches |host| and (if non-empty) |scheme|. Matching is done on the |
| 238 // last committed entry. |
| 239 void UpdateZoomIfNecessary(const std::string& scheme, |
| 240 const std::string& host, |
| 241 double level); |
| 242 |
| 228 // WebContents ------------------------------------------------------ | 243 // WebContents ------------------------------------------------------ |
| 229 WebContentsDelegate* GetDelegate() override; | 244 WebContentsDelegate* GetDelegate() override; |
| 230 void SetDelegate(WebContentsDelegate* delegate) override; | 245 void SetDelegate(WebContentsDelegate* delegate) override; |
| 231 NavigationControllerImpl& GetController() override; | 246 NavigationControllerImpl& GetController() override; |
| 232 const NavigationControllerImpl& GetController() const override; | 247 const NavigationControllerImpl& GetController() const override; |
| 233 BrowserContext* GetBrowserContext() const override; | 248 BrowserContext* GetBrowserContext() const override; |
| 234 const GURL& GetURL() const override; | 249 const GURL& GetURL() const override; |
| 235 const GURL& GetVisibleURL() const override; | 250 const GURL& GetVisibleURL() const override; |
| 236 const GURL& GetLastCommittedURL() const override; | 251 const GURL& GetLastCommittedURL() const override; |
| 237 RenderProcessHost* GetRenderProcessHost() const override; | 252 RenderProcessHost* GetRenderProcessHost() const override; |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 const MediaResponseCallback& callback) override; | 528 const MediaResponseCallback& callback) override; |
| 514 bool CheckMediaAccessPermission(const GURL& security_origin, | 529 bool CheckMediaAccessPermission(const GURL& security_origin, |
| 515 MediaStreamType type) override; | 530 MediaStreamType type) override; |
| 516 SessionStorageNamespace* GetSessionStorageNamespace( | 531 SessionStorageNamespace* GetSessionStorageNamespace( |
| 517 SiteInstance* instance) override; | 532 SiteInstance* instance) override; |
| 518 SessionStorageNamespaceMap GetSessionStorageNamespaceMap() override; | 533 SessionStorageNamespaceMap GetSessionStorageNamespaceMap() override; |
| 519 FrameTree* GetFrameTree() override; | 534 FrameTree* GetFrameTree() override; |
| 520 void SetIsVirtualKeyboardRequested(bool requested) override; | 535 void SetIsVirtualKeyboardRequested(bool requested) override; |
| 521 bool IsVirtualKeyboardRequested() override; | 536 bool IsVirtualKeyboardRequested() override; |
| 522 bool IsOverridingUserAgent() override; | 537 bool IsOverridingUserAgent() override; |
| 538 double GetPendingPageZoomLevel() override; |
| 523 | 539 |
| 524 // NavigatorDelegate --------------------------------------------------------- | 540 // NavigatorDelegate --------------------------------------------------------- |
| 525 | 541 |
| 526 void DidStartNavigation(NavigationHandle* navigation_handle) override; | 542 void DidStartNavigation(NavigationHandle* navigation_handle) override; |
| 527 void DidRedirectNavigation(NavigationHandle* navigation_handle) override; | 543 void DidRedirectNavigation(NavigationHandle* navigation_handle) override; |
| 528 void ReadyToCommitNavigation(NavigationHandle* navigation_handle) override; | 544 void ReadyToCommitNavigation(NavigationHandle* navigation_handle) override; |
| 529 void DidFinishNavigation(NavigationHandle* navigation_handle) override; | 545 void DidFinishNavigation(NavigationHandle* navigation_handle) override; |
| 530 void DidStartProvisionalLoad(RenderFrameHostImpl* render_frame_host, | 546 void DidStartProvisionalLoad(RenderFrameHostImpl* render_frame_host, |
| 531 const GURL& validated_url, | 547 const GURL& validated_url, |
| 532 bool is_error_page, | 548 bool is_error_page, |
| (...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1377 // Adds/removes a callback called on creation of each new WebContents. | 1393 // Adds/removes a callback called on creation of each new WebContents. |
| 1378 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1394 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1379 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1395 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1380 | 1396 |
| 1381 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1397 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1382 }; | 1398 }; |
| 1383 | 1399 |
| 1384 } // namespace content | 1400 } // namespace content |
| 1385 | 1401 |
| 1386 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1402 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |