Chromium Code Reviews| 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_VIEWS_EXTENSIONS_SHELL_WINDOW_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_SHELL_WINDOW_VIEWS_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_SHELL_WINDOW_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_SHELL_WINDOW_VIEWS_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/ui/base_window.h" | 8 #include "chrome/browser/ui/base_window.h" |
| 9 #include "chrome/browser/ui/extensions/native_shell_window.h" | 9 #include "chrome/browser/ui/extensions/native_shell_window.h" |
| 10 #include "chrome/browser/ui/extensions/shell_window.h" | 10 #include "chrome/browser/ui/extensions/shell_window.h" |
| 11 #include "chrome/browser/ui/views/unhandled_keyboard_event_handler.h" | |
| 11 #include "third_party/skia/include/core/SkRegion.h" | 12 #include "third_party/skia/include/core/SkRegion.h" |
| 12 #include "ui/gfx/image/image_skia.h" | 13 #include "ui/gfx/image/image_skia.h" |
| 13 #include "ui/gfx/rect.h" | 14 #include "ui/gfx/rect.h" |
| 14 #include "ui/views/widget/widget_delegate.h" | 15 #include "ui/views/widget/widget_delegate.h" |
| 15 | 16 |
| 17 class ExtensionKeybindingRegistryViews; | |
| 16 class Profile; | 18 class Profile; |
| 17 | 19 |
| 18 namespace content { | 20 namespace content { |
| 19 class WebContents; | 21 class WebContents; |
| 20 } | 22 } |
| 21 | 23 |
| 22 namespace extensions { | 24 namespace extensions { |
| 23 class Extension; | 25 class Extension; |
| 24 struct DraggableRegion; | 26 struct DraggableRegion; |
| 25 } | 27 } |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 113 views::WebView* web_view_; | 115 views::WebView* web_view_; |
| 114 views::Widget* window_; | 116 views::Widget* window_; |
| 115 bool is_fullscreen_; | 117 bool is_fullscreen_; |
| 116 | 118 |
| 117 scoped_ptr<SkRegion> draggable_region_; | 119 scoped_ptr<SkRegion> draggable_region_; |
| 118 | 120 |
| 119 bool frameless_; | 121 bool frameless_; |
| 120 gfx::Size minimum_size_; | 122 gfx::Size minimum_size_; |
| 121 gfx::Size maximum_size_; | 123 gfx::Size maximum_size_; |
| 122 | 124 |
| 125 // The class that registers for keyboard shortcuts for extension commands. | |
| 126 scoped_ptr<ExtensionKeybindingRegistryViews> extension_keybinding_registry_; | |
| 127 | |
| 128 UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; | |
|
Finnur
2012/09/11 10:29:42
nit: Maybe document why we need this?
| |
| 129 | |
| 123 DISALLOW_COPY_AND_ASSIGN(ShellWindowViews); | 130 DISALLOW_COPY_AND_ASSIGN(ShellWindowViews); |
| 124 }; | 131 }; |
| 125 | 132 |
| 126 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_SHELL_WINDOW_VIEWS_H_ | 133 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_SHELL_WINDOW_VIEWS_H_ |
| OLD | NEW |