| 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_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 protected: | 98 protected: |
| 99 // NativeShellWindow implementation. | 99 // NativeShellWindow implementation. |
| 100 virtual void SetFullscreen(bool fullscreen) OVERRIDE; | 100 virtual void SetFullscreen(bool fullscreen) OVERRIDE; |
| 101 virtual bool IsFullscreenOrPending() const OVERRIDE; | 101 virtual bool IsFullscreenOrPending() const OVERRIDE; |
| 102 virtual void UpdateWindowIcon() OVERRIDE; | 102 virtual void UpdateWindowIcon() OVERRIDE; |
| 103 virtual void UpdateWindowTitle() OVERRIDE; | 103 virtual void UpdateWindowTitle() OVERRIDE; |
| 104 virtual void UpdateDraggableRegions( | 104 virtual void UpdateDraggableRegions( |
| 105 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; | 105 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; |
| 106 virtual void HandleKeyboardEvent( | 106 virtual void HandleKeyboardEvent( |
| 107 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 107 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
| 108 virtual void RenderViewHostChanged() OVERRIDE {} |
| 108 | 109 |
| 109 private: | 110 private: |
| 110 virtual ~ShellWindowCocoa(); | 111 virtual ~ShellWindowCocoa(); |
| 111 | 112 |
| 112 ShellNSWindow* window() const; | 113 ShellNSWindow* window() const; |
| 113 | 114 |
| 114 content::WebContents* web_contents() const { | 115 content::WebContents* web_contents() const { |
| 115 return shell_window_->web_contents(); | 116 return shell_window_->web_contents(); |
| 116 } | 117 } |
| 117 const extensions::Extension* extension() const { | 118 const extensions::Extension* extension() const { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 NSPoint last_mouse_location_; | 155 NSPoint last_mouse_location_; |
| 155 | 156 |
| 156 // The Extension Command Registry used to determine which keyboard events to | 157 // The Extension Command Registry used to determine which keyboard events to |
| 157 // handle. | 158 // handle. |
| 158 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; | 159 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; |
| 159 | 160 |
| 160 DISALLOW_COPY_AND_ASSIGN(ShellWindowCocoa); | 161 DISALLOW_COPY_AND_ASSIGN(ShellWindowCocoa); |
| 161 }; | 162 }; |
| 162 | 163 |
| 163 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_ | 164 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_ |
| OLD | NEW |