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