| 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 |
| 11 #include "apps/size_constraints.h" | |
| 12 #include "apps/ui/native_app_window.h" | 11 #include "apps/ui/native_app_window.h" |
| 13 #include "base/mac/scoped_nsobject.h" | 12 #include "base/mac/scoped_nsobject.h" |
| 14 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 15 #import "chrome/browser/ui/cocoa/browser_command_executor.h" | 14 #import "chrome/browser/ui/cocoa/browser_command_executor.h" |
| 16 #include "content/public/browser/web_contents_observer.h" | 15 #include "content/public/browser/web_contents_observer.h" |
| 16 #include "extensions/browser/app_window/size_constraints.h" |
| 17 #include "extensions/common/draggable_region.h" | 17 #include "extensions/common/draggable_region.h" |
| 18 #include "ui/base/accelerators/accelerator_manager.h" | 18 #include "ui/base/accelerators/accelerator_manager.h" |
| 19 #include "ui/gfx/rect.h" | 19 #include "ui/gfx/rect.h" |
| 20 | 20 |
| 21 namespace apps { | 21 namespace apps { |
| 22 class AppWindow; | 22 class AppWindow; |
| 23 } | 23 } |
| 24 | 24 |
| 25 class ExtensionKeybindingRegistryCocoa; | 25 class ExtensionKeybindingRegistryCocoa; |
| 26 class NativeAppWindowCocoa; | 26 class NativeAppWindowCocoa; |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 bool is_hidden_with_app_; | 196 bool is_hidden_with_app_; |
| 197 | 197 |
| 198 bool is_maximized_; | 198 bool is_maximized_; |
| 199 bool is_fullscreen_; | 199 bool is_fullscreen_; |
| 200 NSRect restored_bounds_; | 200 NSRect restored_bounds_; |
| 201 | 201 |
| 202 bool is_resizable_; | 202 bool is_resizable_; |
| 203 bool shows_resize_controls_; | 203 bool shows_resize_controls_; |
| 204 bool shows_fullscreen_controls_; | 204 bool shows_fullscreen_controls_; |
| 205 | 205 |
| 206 apps::SizeConstraints size_constraints_; | 206 extensions::SizeConstraints size_constraints_; |
| 207 | 207 |
| 208 bool has_frame_color_; | 208 bool has_frame_color_; |
| 209 SkColor active_frame_color_; | 209 SkColor active_frame_color_; |
| 210 SkColor inactive_frame_color_; | 210 SkColor inactive_frame_color_; |
| 211 | 211 |
| 212 base::scoped_nsobject<NativeAppWindowController> window_controller_; | 212 base::scoped_nsobject<NativeAppWindowController> window_controller_; |
| 213 NSInteger attention_request_id_; // identifier from requestUserAttention | 213 NSInteger attention_request_id_; // identifier from requestUserAttention |
| 214 | 214 |
| 215 // For system drag, the whole window is draggable and the non-draggable areas | 215 // For system drag, the whole window is draggable and the non-draggable areas |
| 216 // have to been explicitly excluded. | 216 // have to been explicitly excluded. |
| 217 std::vector<extensions::DraggableRegion> draggable_regions_; | 217 std::vector<extensions::DraggableRegion> draggable_regions_; |
| 218 | 218 |
| 219 // The Extension Command Registry used to determine which keyboard events to | 219 // The Extension Command Registry used to determine which keyboard events to |
| 220 // handle. | 220 // handle. |
| 221 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; | 221 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; |
| 222 | 222 |
| 223 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); | 223 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); |
| 224 }; | 224 }; |
| 225 | 225 |
| 226 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ | 226 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ |
| OLD | NEW |