| 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" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 virtual const views::Widget* GetWidget() const OVERRIDE; | 69 virtual const views::Widget* GetWidget() const OVERRIDE; |
| 70 virtual string16 GetWindowTitle() const OVERRIDE; | 70 virtual string16 GetWindowTitle() const OVERRIDE; |
| 71 virtual void DeleteDelegate() OVERRIDE; | 71 virtual void DeleteDelegate() OVERRIDE; |
| 72 virtual views::View* GetInitiallyFocusedView() OVERRIDE; | 72 virtual views::View* GetInitiallyFocusedView() OVERRIDE; |
| 73 virtual bool ShouldDescendIntoChildForEventHandling( | 73 virtual bool ShouldDescendIntoChildForEventHandling( |
| 74 gfx::NativeView child, | 74 gfx::NativeView child, |
| 75 const gfx::Point& location) OVERRIDE; | 75 const gfx::Point& location) OVERRIDE; |
| 76 virtual gfx::ImageSkia GetWindowAppIcon() OVERRIDE; | 76 virtual gfx::ImageSkia GetWindowAppIcon() OVERRIDE; |
| 77 virtual gfx::ImageSkia GetWindowIcon() OVERRIDE; | 77 virtual gfx::ImageSkia GetWindowIcon() OVERRIDE; |
| 78 virtual bool ShouldShowWindowTitle() const OVERRIDE; | 78 virtual bool ShouldShowWindowTitle() const OVERRIDE; |
| 79 virtual void OnWidgetMove() OVERRIDE; |
| 79 | 80 |
| 80 protected: | 81 protected: |
| 81 // views::View implementation. | 82 // views::View implementation. |
| 82 virtual void Layout() OVERRIDE; | 83 virtual void Layout() OVERRIDE; |
| 83 virtual void ViewHierarchyChanged( | 84 virtual void ViewHierarchyChanged( |
| 84 bool is_add, views::View *parent, views::View *child) OVERRIDE; | 85 bool is_add, views::View *parent, views::View *child) OVERRIDE; |
| 85 virtual gfx::Size GetMinimumSize() OVERRIDE; | 86 virtual gfx::Size GetMinimumSize() OVERRIDE; |
| 86 virtual gfx::Size GetMaximumSize() OVERRIDE; | 87 virtual gfx::Size GetMaximumSize() OVERRIDE; |
| 87 virtual void OnFocus() OVERRIDE; | 88 virtual void OnFocus() OVERRIDE; |
| 88 | 89 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 131 |
| 131 // The class that registers for keyboard shortcuts for extension commands. | 132 // The class that registers for keyboard shortcuts for extension commands. |
| 132 scoped_ptr<ExtensionKeybindingRegistryViews> extension_keybinding_registry_; | 133 scoped_ptr<ExtensionKeybindingRegistryViews> extension_keybinding_registry_; |
| 133 | 134 |
| 134 UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; | 135 UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; |
| 135 | 136 |
| 136 DISALLOW_COPY_AND_ASSIGN(ShellWindowViews); | 137 DISALLOW_COPY_AND_ASSIGN(ShellWindowViews); |
| 137 }; | 138 }; |
| 138 | 139 |
| 139 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_SHELL_WINDOW_VIEWS_H_ | 140 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_SHELL_WINDOW_VIEWS_H_ |
| OLD | NEW |