| 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/common/content_settings_types.h" | 10 #include "chrome/common/content_settings_types.h" |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 // Invoked when the preferred size of the contents in current tab has been | 346 // Invoked when the preferred size of the contents in current tab has been |
| 347 // changed. We might choose to update the window size to accomodate this | 347 // changed. We might choose to update the window size to accomodate this |
| 348 // change. | 348 // change. |
| 349 // Note that this won't be fired if we change tabs. | 349 // Note that this won't be fired if we change tabs. |
| 350 virtual void UpdatePreferredSize(TabContents* tab_contents, | 350 virtual void UpdatePreferredSize(TabContents* tab_contents, |
| 351 const gfx::Size& pref_size) {} | 351 const gfx::Size& pref_size) {} |
| 352 | 352 |
| 353 // Construct a BrowserWindow implementation for the specified |browser|. | 353 // Construct a BrowserWindow implementation for the specified |browser|. |
| 354 static BrowserWindow* CreateBrowserWindow(Browser* browser); | 354 static BrowserWindow* CreateBrowserWindow(Browser* browser); |
| 355 | 355 |
| 356 // Shows the avatar bubble inside |tab_contents|. The bubble is positioned |
| 357 // relative to |rect|. |rect| should be in the |tab_contents| coordinate |
| 358 // system. |
| 359 virtual void ShowAvatarBubble(TabContents* tab_contents, |
| 360 const gfx::Rect& rect) = 0; |
| 361 |
| 356 protected: | 362 protected: |
| 357 friend class BrowserList; | 363 friend class BrowserList; |
| 358 friend class BrowserView; | 364 friend class BrowserView; |
| 359 virtual void DestroyBrowser() = 0; | 365 virtual void DestroyBrowser() = 0; |
| 360 }; | 366 }; |
| 361 | 367 |
| 362 #if defined(OS_WIN) || defined(TOOLKIT_VIEWS) | 368 #if defined(OS_WIN) || defined(TOOLKIT_VIEWS) |
| 363 class BookmarkBarView; | 369 class BookmarkBarView; |
| 364 class LocationBarView; | 370 class LocationBarView; |
| 365 | 371 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 387 | 393 |
| 388 // Returns the ToolbarView. | 394 // Returns the ToolbarView. |
| 389 virtual ToolbarView* GetToolbarView() const = 0; | 395 virtual ToolbarView* GetToolbarView() const = 0; |
| 390 #endif | 396 #endif |
| 391 | 397 |
| 392 protected: | 398 protected: |
| 393 virtual ~BrowserWindowTesting() {} | 399 virtual ~BrowserWindowTesting() {} |
| 394 }; | 400 }; |
| 395 | 401 |
| 396 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 402 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |