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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 bool IsMinimized() const override; | 56 bool IsMinimized() const override; |
57 bool IsFullscreen() const override; | 57 bool IsFullscreen() const override; |
58 gfx::NativeWindow GetNativeWindow() const override; | 58 gfx::NativeWindow GetNativeWindow() const override; |
59 gfx::Rect GetRestoredBounds() const override; | 59 gfx::Rect GetRestoredBounds() const override; |
60 ui::WindowShowState GetRestoredState() const override; | 60 ui::WindowShowState GetRestoredState() const override; |
61 gfx::Rect GetBounds() const override; | 61 gfx::Rect GetBounds() const override; |
62 void Show() override; | 62 void Show() override; |
63 void ShowInactive() override; | 63 void ShowInactive() override; |
64 void Hide() override; | 64 void Hide() override; |
65 void Close() override; | 65 void Close() override; |
66 void Activate() override; | 66 void Activate(bool user_gesture) override; |
67 void Deactivate() override; | 67 void Deactivate() override; |
68 void Maximize() override; | 68 void Maximize() override; |
69 void Minimize() override; | 69 void Minimize() override; |
70 void Restore() override; | 70 void Restore() override; |
71 void SetBounds(const gfx::Rect& bounds) override; | 71 void SetBounds(const gfx::Rect& bounds) override; |
72 void FlashFrame(bool flash) override; | 72 void FlashFrame(bool flash) override; |
73 bool IsAlwaysOnTop() const override; | 73 bool IsAlwaysOnTop() const override; |
74 | 74 |
75 // Called when the window is about to be closed. | 75 // Called when the window is about to be closed. |
76 void WindowWillClose(); | 76 void WindowWillClose(); |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 std::vector<extensions::DraggableRegion> draggable_regions_; | 211 std::vector<extensions::DraggableRegion> draggable_regions_; |
212 | 212 |
213 // The Extension Command Registry used to determine which keyboard events to | 213 // The Extension Command Registry used to determine which keyboard events to |
214 // handle. | 214 // handle. |
215 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; | 215 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; |
216 | 216 |
217 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); | 217 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); |
218 }; | 218 }; |
219 | 219 |
220 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ | 220 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ |
OLD | NEW |