OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 // Invoked when the preferred size of the contents in current tab has been | 354 // Invoked when the preferred size of the contents in current tab has been |
355 // changed. We might choose to update the window size to accomodate this | 355 // changed. We might choose to update the window size to accomodate this |
356 // change. | 356 // change. |
357 // Note that this won't be fired if we change tabs. | 357 // Note that this won't be fired if we change tabs. |
358 virtual void UpdatePreferredSize(content::WebContents* web_contents, | 358 virtual void UpdatePreferredSize(content::WebContents* web_contents, |
359 const gfx::Size& pref_size) {} | 359 const gfx::Size& pref_size) {} |
360 | 360 |
361 // Construct a BrowserWindow implementation for the specified |browser|. | 361 // Construct a BrowserWindow implementation for the specified |browser|. |
362 static BrowserWindow* CreateBrowserWindow(Browser* browser); | 362 static BrowserWindow* CreateBrowserWindow(Browser* browser); |
363 | 363 |
364 // Shows the avatar bubble inside |tab_contents|. The bubble is positioned | 364 // Shows the avatar bubble inside |web_contents|. The bubble is positioned |
365 // relative to |rect|. |rect| should be in the |tab_contents| coordinate | 365 // relative to |rect|. |rect| should be in the |web_contents| coordinate |
366 // system. | 366 // system. |
367 virtual void ShowAvatarBubble(TabContents* tab_contents, | 367 virtual void ShowAvatarBubble(content::WebContents* web_contents, |
368 const gfx::Rect& rect) = 0; | 368 const gfx::Rect& rect) = 0; |
369 | 369 |
370 // Shows the avatar bubble on the window frame off of the avatar button. | 370 // Shows the avatar bubble on the window frame off of the avatar button. |
371 virtual void ShowAvatarBubbleFromAvatarButton() = 0; | 371 virtual void ShowAvatarBubbleFromAvatarButton() = 0; |
372 | 372 |
373 protected: | 373 protected: |
374 friend class BrowserList; | 374 friend class BrowserList; |
375 friend class BrowserView; | 375 friend class BrowserView; |
376 virtual void DestroyBrowser() = 0; | 376 virtual void DestroyBrowser() = 0; |
377 }; | 377 }; |
(...skipping 26 matching lines...) Expand all Loading... |
404 | 404 |
405 // Returns the ToolbarView. | 405 // Returns the ToolbarView. |
406 virtual ToolbarView* GetToolbarView() const = 0; | 406 virtual ToolbarView* GetToolbarView() const = 0; |
407 #endif | 407 #endif |
408 | 408 |
409 protected: | 409 protected: |
410 virtual ~BrowserWindowTesting() {} | 410 virtual ~BrowserWindowTesting() {} |
411 }; | 411 }; |
412 | 412 |
413 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 413 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |