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/common/content_settings_types.h" | 9 #include "chrome/common/content_settings_types.h" |
10 #include "content/browser/tab_contents/navigation_entry.h" | 10 #include "content/browser/tab_contents/navigation_entry.h" |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 | 332 |
333 // Return the correct disposition for a popup window based on |bounds|. | 333 // Return the correct disposition for a popup window based on |bounds|. |
334 virtual WindowOpenDisposition GetDispositionForPopupBounds( | 334 virtual WindowOpenDisposition GetDispositionForPopupBounds( |
335 const gfx::Rect& bounds) = 0; | 335 const gfx::Rect& bounds) = 0; |
336 | 336 |
337 #if defined(OS_CHROMEOS) | 337 #if defined(OS_CHROMEOS) |
338 // Shows the keyboard overlay dialog box. | 338 // Shows the keyboard overlay dialog box. |
339 virtual void ShowKeyboardOverlay(gfx::NativeWindow owning_window) = 0; | 339 virtual void ShowKeyboardOverlay(gfx::NativeWindow owning_window) = 0; |
340 #endif | 340 #endif |
341 | 341 |
| 342 // Returns a pointer to the Panel instance if the browser window is indeed a |
| 343 // panel, or NULL if there is none. |
| 344 virtual Panel* GetAsPanel() { return NULL; } |
| 345 |
342 // Construct a BrowserWindow implementation for the specified |browser|. | 346 // Construct a BrowserWindow implementation for the specified |browser|. |
343 static BrowserWindow* CreateBrowserWindow(Browser* browser); | 347 static BrowserWindow* CreateBrowserWindow(Browser* browser); |
344 | 348 |
345 // Construct a FindBar implementation for the specified |browser|. | 349 // Construct a FindBar implementation for the specified |browser|. |
346 static FindBar* CreateFindBar(Browser* browser_window); | 350 static FindBar* CreateFindBar(Browser* browser_window); |
347 | 351 |
348 protected: | 352 protected: |
349 friend class BrowserList; | 353 friend class BrowserList; |
350 friend class BrowserView; | 354 friend class BrowserView; |
351 virtual void DestroyBrowser() = 0; | 355 virtual void DestroyBrowser() = 0; |
(...skipping 27 matching lines...) Expand all Loading... |
379 | 383 |
380 // Returns the ToolbarView. | 384 // Returns the ToolbarView. |
381 virtual ToolbarView* GetToolbarView() const = 0; | 385 virtual ToolbarView* GetToolbarView() const = 0; |
382 #endif | 386 #endif |
383 | 387 |
384 protected: | 388 protected: |
385 virtual ~BrowserWindowTesting() {} | 389 virtual ~BrowserWindowTesting() {} |
386 }; | 390 }; |
387 | 391 |
388 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 392 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |