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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 // have been removed. | 217 // have been removed. |
218 void RemoveAccessibilityMode(AccessibilityMode mode); | 218 void RemoveAccessibilityMode(AccessibilityMode mode); |
219 | 219 |
220 // Request a one-time snapshot of the accessibility tree without changing | 220 // Request a one-time snapshot of the accessibility tree without changing |
221 // the accessibility mode. | 221 // the accessibility mode. |
222 using AXTreeSnapshotCallback = | 222 using AXTreeSnapshotCallback = |
223 base::Callback<void( | 223 base::Callback<void( |
224 const ui::AXTreeUpdate&)>; | 224 const ui::AXTreeUpdate&)>; |
225 void RequestAXTreeSnapshot(AXTreeSnapshotCallback callback); | 225 void RequestAXTreeSnapshot(AXTreeSnapshotCallback callback); |
226 | 226 |
| 227 // Set a temporary zoom level for the frames associated with this WebContents. |
| 228 // If |is_temporary| is true, we are setting a new temporary zoom level, |
| 229 // otherwise we are clearing a previously set temporary zoom level. |
| 230 void SetTemporaryZoomLevel(double level, bool is_temporary); |
| 231 |
| 232 // Sets the zoom level for frames associated with this WebContents. |
| 233 void UpdateZoom(double level); |
| 234 |
| 235 // Sets the zoom level for frames associated with this WebContents if it |
| 236 // matches |host| and (if non-empty) |scheme|. Matching is done on the |
| 237 // last committed entry. |
| 238 void UpdateZoomIfNecessary(const std::string& scheme, |
| 239 const std::string& host, |
| 240 double level); |
| 241 |
227 // WebContents ------------------------------------------------------ | 242 // WebContents ------------------------------------------------------ |
228 WebContentsDelegate* GetDelegate() override; | 243 WebContentsDelegate* GetDelegate() override; |
229 void SetDelegate(WebContentsDelegate* delegate) override; | 244 void SetDelegate(WebContentsDelegate* delegate) override; |
230 NavigationControllerImpl& GetController() override; | 245 NavigationControllerImpl& GetController() override; |
231 const NavigationControllerImpl& GetController() const override; | 246 const NavigationControllerImpl& GetController() const override; |
232 BrowserContext* GetBrowserContext() const override; | 247 BrowserContext* GetBrowserContext() const override; |
233 const GURL& GetURL() const override; | 248 const GURL& GetURL() const override; |
234 const GURL& GetVisibleURL() const override; | 249 const GURL& GetVisibleURL() const override; |
235 const GURL& GetLastCommittedURL() const override; | 250 const GURL& GetLastCommittedURL() const override; |
236 RenderProcessHost* GetRenderProcessHost() const override; | 251 RenderProcessHost* GetRenderProcessHost() const override; |
(...skipping 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1343 // Adds/removes a callback called on creation of each new WebContents. | 1358 // Adds/removes a callback called on creation of each new WebContents. |
1344 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1359 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
1345 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1360 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
1346 | 1361 |
1347 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1362 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
1348 }; | 1363 }; |
1349 | 1364 |
1350 } // namespace content | 1365 } // namespace content |
1351 | 1366 |
1352 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1367 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |