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

Unified Diff: chrome/browser/ui/browser_window.h

Issue 2734123004: add a new set of commands to resize and position windows (Closed)
Patch Set: use browser window to support linux/window/mac Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/browser_window.h
diff --git a/chrome/browser/ui/browser_window.h b/chrome/browser/ui/browser_window.h
index 2422d59ffddb915f865d0e93edd04501f4d56dbe..96edef5e18a2235c8c7f3650f2e2e86f74496723 100644
--- a/chrome/browser/ui/browser_window.h
+++ b/chrome/browser/ui/browser_window.h
@@ -347,6 +347,15 @@ class BrowserWindow : public ui::BaseWindow {
virtual void ResizeDueToAutoResize(content::WebContents* web_contents,
const gfx::Size& new_size) {}
+ // Returns a pointer to the BrowserWindow* interface implementation (an
+ // instance of this object, typically) for a given native window, or null if
+ // there is no such association.
+ //
+ // Don't use this unless you only have a NativeWindow. In nearly all
+ // situations plumb through browser and use it.
+ static BrowserWindow* GetBrowserWindowForNativeWindow(
+ gfx::NativeWindow window);
+
// Construct a BrowserWindow implementation for the specified |browser|.
static BrowserWindow* CreateBrowserWindow(Browser* browser,
bool user_gesture);

Powered by Google App Engine
This is Rietveld 408576698