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

Side by Side Diff: chrome/browser/ui/browser_window.h

Issue 9517010: Change panels to be able to turn off autoresize. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix assert at the end of RenderWidget::Resize which fixes the tests on OSX. Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/panels/base_panel_browser_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_WINDOW_H_
6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/base_window.h" 9 #include "chrome/browser/ui/base_window.h"
10 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" 10 #include "chrome/browser/ui/bookmarks/bookmark_bar.h"
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 virtual void ShowKeyboardOverlay(gfx::NativeWindow owning_window) = 0; 326 virtual void ShowKeyboardOverlay(gfx::NativeWindow owning_window) = 0;
327 #endif 327 #endif
328 328
329 // Invoked when the preferred size of the contents in current tab has been 329 // Invoked when the preferred size of the contents in current tab has been
330 // changed. We might choose to update the window size to accomodate this 330 // changed. We might choose to update the window size to accomodate this
331 // change. 331 // change.
332 // Note that this won't be fired if we change tabs. 332 // Note that this won't be fired if we change tabs.
333 virtual void UpdatePreferredSize(content::WebContents* web_contents, 333 virtual void UpdatePreferredSize(content::WebContents* web_contents,
334 const gfx::Size& pref_size) {} 334 const gfx::Size& pref_size) {}
335 335
336 // Invoked when the contents auto-resized and the container should match it.
337 virtual void ResizeDueToAutoResize(content::WebContents* web_contents,
338 const gfx::Size& new_size) {}
339
336 // Construct a BrowserWindow implementation for the specified |browser|. 340 // Construct a BrowserWindow implementation for the specified |browser|.
337 static BrowserWindow* CreateBrowserWindow(Browser* browser); 341 static BrowserWindow* CreateBrowserWindow(Browser* browser);
338 342
339 // Shows the avatar bubble inside |web_contents|. The bubble is positioned 343 // Shows the avatar bubble inside |web_contents|. The bubble is positioned
340 // relative to |rect|. |rect| should be in the |web_contents| coordinate 344 // relative to |rect|. |rect| should be in the |web_contents| coordinate
341 // system. 345 // system.
342 virtual void ShowAvatarBubble(content::WebContents* web_contents, 346 virtual void ShowAvatarBubble(content::WebContents* web_contents,
343 const gfx::Rect& rect) = 0; 347 const gfx::Rect& rect) = 0;
344 348
345 // Shows the avatar bubble on the window frame off of the avatar button. 349 // Shows the avatar bubble on the window frame off of the avatar button.
(...skipping 30 matching lines...) Expand all
376 380
377 // Returns the ToolbarView. 381 // Returns the ToolbarView.
378 virtual ToolbarView* GetToolbarView() const = 0; 382 virtual ToolbarView* GetToolbarView() const = 0;
379 #endif 383 #endif
380 384
381 protected: 385 protected:
382 virtual ~BrowserWindowTesting() {} 386 virtual ~BrowserWindowTesting() {}
383 }; 387 };
384 388
385 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 389 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/panels/base_panel_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698