| 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 has been changed. We might |
| 346 // choose to update the window size to accomodate this change. |
| 347 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} |
| 348 |
| 344 // Construct a BrowserWindow implementation for the specified |browser|. | 349 // Construct a BrowserWindow implementation for the specified |browser|. |
| 345 static BrowserWindow* CreateBrowserWindow(Browser* browser); | 350 static BrowserWindow* CreateBrowserWindow(Browser* browser); |
| 346 | 351 |
| 347 protected: | 352 protected: |
| 348 friend class BrowserList; | 353 friend class BrowserList; |
| 349 friend class BrowserView; | 354 friend class BrowserView; |
| 350 virtual void DestroyBrowser() = 0; | 355 virtual void DestroyBrowser() = 0; |
| 351 }; | 356 }; |
| 352 | 357 |
| 353 #if defined(OS_WIN) || defined(TOOLKIT_VIEWS) | 358 #if defined(OS_WIN) || defined(TOOLKIT_VIEWS) |
| (...skipping 24 matching lines...) Expand all Loading... |
| 378 | 383 |
| 379 // Returns the ToolbarView. | 384 // Returns the ToolbarView. |
| 380 virtual ToolbarView* GetToolbarView() const = 0; | 385 virtual ToolbarView* GetToolbarView() const = 0; |
| 381 #endif | 386 #endif |
| 382 | 387 |
| 383 protected: | 388 protected: |
| 384 virtual ~BrowserWindowTesting() {} | 389 virtual ~BrowserWindowTesting() {} |
| 385 }; | 390 }; |
| 386 | 391 |
| 387 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 392 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |