| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_APPS_NATIVE_APP_WINDOW_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 protected: | 114 protected: |
| 115 // NativeAppWindow implementation. | 115 // NativeAppWindow implementation. |
| 116 virtual void SetFullscreen(bool fullscreen) OVERRIDE; | 116 virtual void SetFullscreen(bool fullscreen) OVERRIDE; |
| 117 virtual bool IsFullscreenOrPending() const OVERRIDE; | 117 virtual bool IsFullscreenOrPending() const OVERRIDE; |
| 118 virtual bool IsDetached() const OVERRIDE; | 118 virtual bool IsDetached() const OVERRIDE; |
| 119 virtual void UpdateWindowIcon() OVERRIDE; | 119 virtual void UpdateWindowIcon() OVERRIDE; |
| 120 virtual void UpdateWindowTitle() OVERRIDE; | 120 virtual void UpdateWindowTitle() OVERRIDE; |
| 121 virtual void UpdateInputRegion(scoped_ptr<SkRegion> region) OVERRIDE; | 121 virtual void UpdateInputRegion(scoped_ptr<SkRegion> region) OVERRIDE; |
| 122 virtual void UpdateDraggableRegions( | 122 virtual void UpdateDraggableRegions( |
| 123 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; | 123 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; |
| 124 virtual SkRegion* GetDraggableRegion() const OVERRIDE; |
| 124 virtual void HandleKeyboardEvent( | 125 virtual void HandleKeyboardEvent( |
| 125 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 126 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
| 127 virtual bool IsFrameless() const OVERRIDE; |
| 126 virtual gfx::Insets GetFrameInsets() const OVERRIDE; | 128 virtual gfx::Insets GetFrameInsets() const OVERRIDE; |
| 127 virtual bool IsVisible() const OVERRIDE; | 129 virtual bool IsVisible() const OVERRIDE; |
| 128 | 130 |
| 129 // WebContentsObserver implementation. | 131 // WebContentsObserver implementation. |
| 130 virtual void RenderViewHostChanged( | 132 virtual void RenderViewHostChanged( |
| 131 content::RenderViewHost* old_host, | 133 content::RenderViewHost* old_host, |
| 132 content::RenderViewHost* new_host) OVERRIDE; | 134 content::RenderViewHost* new_host) OVERRIDE; |
| 133 | 135 |
| 134 // These are used to simulate Mac-style hide/show. Since windows can be hidden | 136 // These are used to simulate Mac-style hide/show. Since windows can be hidden |
| 135 // and shown using the app.window API, this sets is_hidden_with_app_ to | 137 // and shown using the app.window API, this sets is_hidden_with_app_ to |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 NSPoint last_mouse_location_; | 223 NSPoint last_mouse_location_; |
| 222 | 224 |
| 223 // The Extension Command Registry used to determine which keyboard events to | 225 // The Extension Command Registry used to determine which keyboard events to |
| 224 // handle. | 226 // handle. |
| 225 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; | 227 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; |
| 226 | 228 |
| 227 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); | 229 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); |
| 228 }; | 230 }; |
| 229 | 231 |
| 230 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ | 232 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ |
| OLD | NEW |