OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |