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

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

Issue 2630583002: Add setting to isolate zoom changes by default. (Closed)
Patch Set: Add more tests. Created 3 years, 11 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_PUBLIC_BROWSER_WEB_CONTENTS_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 // Returns the outermost RenderWidgetHostView. This will return the platform 270 // Returns the outermost RenderWidgetHostView. This will return the platform
271 // specific RenderWidgetHostView (as opposed to 271 // specific RenderWidgetHostView (as opposed to
272 // RenderWidgetHostViewChildFrame), which can be used to create context 272 // RenderWidgetHostViewChildFrame), which can be used to create context
273 // menus. 273 // menus.
274 virtual RenderWidgetHostView* GetTopLevelRenderWidgetHostView() = 0; 274 virtual RenderWidgetHostView* GetTopLevelRenderWidgetHostView() = 0;
275 275
276 // Causes the current page to be closed, including running its onunload event 276 // Causes the current page to be closed, including running its onunload event
277 // handler. 277 // handler.
278 virtual void ClosePage() = 0; 278 virtual void ClosePage() = 0;
279 279
280 // Notifies the WebContents of its replacement by another WebContents
281 // in a browser tab.
282 virtual void OnReplaced(WebContents* new_contents) = 0;
wjmaclean 2017/01/19 21:09:06 Hmm, content/ isn't supposed to know anything abou
Kevin McNee 2017/01/25 23:42:56 Done. Removed.
283
280 // Returns the currently active fullscreen widget. If there is none, returns 284 // Returns the currently active fullscreen widget. If there is none, returns
281 // nullptr. 285 // nullptr.
282 virtual RenderWidgetHostView* GetFullscreenRenderWidgetHostView() const = 0; 286 virtual RenderWidgetHostView* GetFullscreenRenderWidgetHostView() const = 0;
283 287
284 // Returns the theme color for the underlying content as set by the 288 // Returns the theme color for the underlying content as set by the
285 // theme-color meta tag. 289 // theme-color meta tag.
286 virtual SkColor GetThemeColor() const = 0; 290 virtual SkColor GetThemeColor() const = 0;
287 291
288 // Create a WebUI page for the given url. In most cases, this doesn't need to 292 // Create a WebUI page for the given url. In most cases, this doesn't need to
289 // be called by embedders since content will create its own WebUI objects as 293 // be called by embedders since content will create its own WebUI objects as
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 769
766 private: 770 private:
767 // This interface should only be implemented inside content. 771 // This interface should only be implemented inside content.
768 friend class WebContentsImpl; 772 friend class WebContentsImpl;
769 WebContents() {} 773 WebContents() {}
770 }; 774 };
771 775
772 } // namespace content 776 } // namespace content
773 777
774 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 778 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698