| 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 15 matching lines...) Expand all Loading... |
| 26 class TabContentsWrapper; | 26 class TabContentsWrapper; |
| 27 class TemplateURL; | 27 class TemplateURL; |
| 28 class TemplateURLService; | 28 class TemplateURLService; |
| 29 #if !defined(OS_MACOSX) | 29 #if !defined(OS_MACOSX) |
| 30 class ToolbarView; | 30 class ToolbarView; |
| 31 #endif | 31 #endif |
| 32 struct NativeWebKeyboardEvent; | 32 struct NativeWebKeyboardEvent; |
| 33 | 33 |
| 34 namespace gfx { | 34 namespace gfx { |
| 35 class Rect; | 35 class Rect; |
| 36 class Size; |
| 36 } | 37 } |
| 37 | 38 |
| 38 class Extension; | 39 class Extension; |
| 39 | 40 |
| 40 //////////////////////////////////////////////////////////////////////////////// | 41 //////////////////////////////////////////////////////////////////////////////// |
| 41 // BrowserWindow interface | 42 // BrowserWindow interface |
| 42 // An interface implemented by the "view" of the Browser window. | 43 // An interface implemented by the "view" of the Browser window. |
| 43 // | 44 // |
| 44 // NOTE: All getters may return NULL. | 45 // NOTE: All getters may return NULL. |
| 45 class BrowserWindow { | 46 class BrowserWindow { |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 const gfx::Rect& bounds) = 0; | 335 const gfx::Rect& bounds) = 0; |
| 335 | 336 |
| 336 // Construct a FindBar implementation for the |browser|. | 337 // Construct a FindBar implementation for the |browser|. |
| 337 virtual FindBar* CreateFindBar() = 0; | 338 virtual FindBar* CreateFindBar() = 0; |
| 338 | 339 |
| 339 #if defined(OS_CHROMEOS) | 340 #if defined(OS_CHROMEOS) |
| 340 // Shows the keyboard overlay dialog box. | 341 // Shows the keyboard overlay dialog box. |
| 341 virtual void ShowKeyboardOverlay(gfx::NativeWindow owning_window) = 0; | 342 virtual void ShowKeyboardOverlay(gfx::NativeWindow owning_window) = 0; |
| 342 #endif | 343 #endif |
| 343 | 344 |
| 345 // Invoked when the preferred size of the contents in current tab has been |
| 346 // changed. We might choose to update the window size to accomodate this |
| 347 // change. |
| 348 // Note that this won't be fired if we change tabs. |
| 349 virtual void UpdatePreferredSize(TabContents* tab_contents, |
| 350 const gfx::Size& pref_size) {} |
| 351 |
| 344 // Construct a BrowserWindow implementation for the specified |browser|. | 352 // Construct a BrowserWindow implementation for the specified |browser|. |
| 345 static BrowserWindow* CreateBrowserWindow(Browser* browser); | 353 static BrowserWindow* CreateBrowserWindow(Browser* browser); |
| 346 | 354 |
| 347 protected: | 355 protected: |
| 348 friend class BrowserList; | 356 friend class BrowserList; |
| 349 friend class BrowserView; | 357 friend class BrowserView; |
| 350 virtual void DestroyBrowser() = 0; | 358 virtual void DestroyBrowser() = 0; |
| 351 }; | 359 }; |
| 352 | 360 |
| 353 #if defined(OS_WIN) || defined(TOOLKIT_VIEWS) | 361 #if defined(OS_WIN) || defined(TOOLKIT_VIEWS) |
| (...skipping 24 matching lines...) Expand all Loading... |
| 378 | 386 |
| 379 // Returns the ToolbarView. | 387 // Returns the ToolbarView. |
| 380 virtual ToolbarView* GetToolbarView() const = 0; | 388 virtual ToolbarView* GetToolbarView() const = 0; |
| 381 #endif | 389 #endif |
| 382 | 390 |
| 383 protected: | 391 protected: |
| 384 virtual ~BrowserWindowTesting() {} | 392 virtual ~BrowserWindowTesting() {} |
| 385 }; | 393 }; |
| 386 | 394 |
| 387 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 395 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |