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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 1804023002: Fix page zoom to be frame-centric for out-of-process frames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't use WeakPtr for PostTask on UI thread. Created 4 years, 8 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
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 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
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 void SetTemporaryZoomLevel(double level, bool is_temporary);
alexmos 2016/04/05 18:00:54 nit: comments explaining what the new functions ar
wjmaclean 2016/04/05 20:22:00 Done.
228 void UpdateZoom(double level);
229 void UpdateZoomIfNecessary(const std::string& scheme,
230 const std::string& host,
231 double level);
232
227 // WebContents ------------------------------------------------------ 233 // WebContents ------------------------------------------------------
228 WebContentsDelegate* GetDelegate() override; 234 WebContentsDelegate* GetDelegate() override;
229 void SetDelegate(WebContentsDelegate* delegate) override; 235 void SetDelegate(WebContentsDelegate* delegate) override;
230 NavigationControllerImpl& GetController() override; 236 NavigationControllerImpl& GetController() override;
231 const NavigationControllerImpl& GetController() const override; 237 const NavigationControllerImpl& GetController() const override;
232 BrowserContext* GetBrowserContext() const override; 238 BrowserContext* GetBrowserContext() const override;
233 const GURL& GetURL() const override; 239 const GURL& GetURL() const override;
234 const GURL& GetVisibleURL() const override; 240 const GURL& GetVisibleURL() const override;
235 const GURL& GetLastCommittedURL() const override; 241 const GURL& GetLastCommittedURL() const override;
236 RenderProcessHost* GetRenderProcessHost() const override; 242 RenderProcessHost* GetRenderProcessHost() const override;
(...skipping 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after
1339 // Adds/removes a callback called on creation of each new WebContents. 1345 // Adds/removes a callback called on creation of each new WebContents.
1340 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1346 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1341 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1347 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1342 1348
1343 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1349 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1344 }; 1350 };
1345 1351
1346 } // namespace content 1352 } // namespace content
1347 1353
1348 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1354 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698