| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_EXTENSIONS_NATIVE_APP_WINDOW_H_ | 5 #ifndef CHROME_BROWSER_UI_EXTENSIONS_NATIVE_APP_WINDOW_H_ |
| 6 #define CHROME_BROWSER_UI_EXTENSIONS_NATIVE_APP_WINDOW_H_ | 6 #define CHROME_BROWSER_UI_EXTENSIONS_NATIVE_APP_WINDOW_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/ui/extensions/shell_window.h" | 8 #include "chrome/browser/ui/extensions/shell_window.h" |
| 9 #include "components/web_modal/web_contents_modal_dialog_host.h" | 9 #include "components/web_modal/web_contents_modal_dialog_host.h" |
| 10 #include "ui/base/base_window.h" | 10 #include "ui/base/base_window.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 const content::NativeWebKeyboardEvent& event) = 0; | 42 const content::NativeWebKeyboardEvent& event) = 0; |
| 43 | 43 |
| 44 // TODO(jianli): once http://crbug.com/123007 is fixed, we'll no longer need | 44 // TODO(jianli): once http://crbug.com/123007 is fixed, we'll no longer need |
| 45 // this. | 45 // this. |
| 46 virtual void RenderViewHostChanged() = 0; | 46 virtual void RenderViewHostChanged() = 0; |
| 47 | 47 |
| 48 // Returns the difference between the window bounds (including titlebar and | 48 // Returns the difference between the window bounds (including titlebar and |
| 49 // borders) and the content bounds, if any. | 49 // borders) and the content bounds, if any. |
| 50 virtual gfx::Insets GetFrameInsets() const = 0; | 50 virtual gfx::Insets GetFrameInsets() const = 0; |
| 51 | 51 |
| 52 // Returns the work area on the screen for the window. |
| 53 virtual gfx::Rect GetWindowWorkArea() const = 0; |
| 54 |
| 52 virtual ~NativeAppWindow() {} | 55 virtual ~NativeAppWindow() {} |
| 53 }; | 56 }; |
| 54 | 57 |
| 55 #endif // CHROME_BROWSER_UI_EXTENSIONS_NATIVE_APP_WINDOW_H_ | 58 #endif // CHROME_BROWSER_UI_EXTENSIONS_NATIVE_APP_WINDOW_H_ |
| OLD | NEW |