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

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: Redisable test. 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
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/bookmarks/bookmark_bar.h" 9 #include "chrome/browser/ui/bookmarks/bookmark_bar.h"
10 #include "chrome/browser/ui/fullscreen_exit_bubble_type.h" 10 #include "chrome/browser/ui/fullscreen_exit_bubble_type.h"
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 virtual void ShowKeyboardOverlay(gfx::NativeWindow owning_window) = 0; 363 virtual void ShowKeyboardOverlay(gfx::NativeWindow owning_window) = 0;
364 #endif 364 #endif
365 365
366 // Invoked when the preferred size of the contents in current tab has been 366 // Invoked when the preferred size of the contents in current tab has been
367 // changed. We might choose to update the window size to accomodate this 367 // changed. We might choose to update the window size to accomodate this
368 // change. 368 // change.
369 // Note that this won't be fired if we change tabs. 369 // Note that this won't be fired if we change tabs.
370 virtual void UpdatePreferredSize(content::WebContents* web_contents, 370 virtual void UpdatePreferredSize(content::WebContents* web_contents,
371 const gfx::Size& pref_size) {} 371 const gfx::Size& pref_size) {}
372 372
373 // Invoked when the contents auto-resized and the container should match it.
374 virtual void ResizeDueToAutoResize(content::WebContents* web_contents,
375 const gfx::Size& new_size) {}
376
373 // Construct a BrowserWindow implementation for the specified |browser|. 377 // Construct a BrowserWindow implementation for the specified |browser|.
374 static BrowserWindow* CreateBrowserWindow(Browser* browser); 378 static BrowserWindow* CreateBrowserWindow(Browser* browser);
375 379
376 // Shows the avatar bubble inside |web_contents|. The bubble is positioned 380 // Shows the avatar bubble inside |web_contents|. The bubble is positioned
377 // relative to |rect|. |rect| should be in the |web_contents| coordinate 381 // relative to |rect|. |rect| should be in the |web_contents| coordinate
378 // system. 382 // system.
379 virtual void ShowAvatarBubble(content::WebContents* web_contents, 383 virtual void ShowAvatarBubble(content::WebContents* web_contents,
380 const gfx::Rect& rect) = 0; 384 const gfx::Rect& rect) = 0;
381 385
382 // Shows the avatar bubble on the window frame off of the avatar button. 386 // Shows the avatar bubble on the window frame off of the avatar button.
(...skipping 30 matching lines...) Expand all
413 417
414 // Returns the ToolbarView. 418 // Returns the ToolbarView.
415 virtual ToolbarView* GetToolbarView() const = 0; 419 virtual ToolbarView* GetToolbarView() const = 0;
416 #endif 420 #endif
417 421
418 protected: 422 protected:
419 virtual ~BrowserWindowTesting() {} 423 virtual ~BrowserWindowTesting() {}
420 }; 424 };
421 425
422 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 426 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698