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 #include "chrome/browser/ui/panels/panel_window_controller_cocoa.h" | 5 #include "chrome/browser/ui/panels/panel_window_controller_cocoa.h" |
6 | 6 |
7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/mac/bundle_locations.h" | 10 #include "base/mac/bundle_locations.h" |
11 #include "base/mac/mac_util.h" | 11 #include "base/mac/mac_util.h" |
12 #include "base/mac/scoped_nsautorelease_pool.h" | 12 #include "base/mac/scoped_nsautorelease_pool.h" |
13 #include "base/sys_string_conversions.h" | 13 #include "base/sys_string_conversions.h" |
14 #include "chrome/app/chrome_command_ids.h" // IDC_* | 14 #include "chrome/app/chrome_command_ids.h" // IDC_* |
15 #include "chrome/browser/chrome_browser_application_mac.h" | 15 #include "chrome/browser/chrome_browser_application_mac.h" |
16 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
17 #include "chrome/browser/themes/theme_service.h" | 17 #include "chrome/browser/themes/theme_service.h" |
18 #include "chrome/browser/themes/theme_service_factory.h" | 18 #include "chrome/browser/themes/theme_service_factory.h" |
19 #include "chrome/browser/ui/browser.h" | 19 #include "chrome/browser/ui/browser.h" |
20 #include "chrome/browser/ui/browser_list.h" | 20 #include "chrome/browser/ui/browser_list.h" |
| 21 #include "chrome/browser/ui/browser_window.h" |
21 #import "chrome/browser/ui/cocoa/browser_window_utils.h" | 22 #import "chrome/browser/ui/cocoa/browser_window_utils.h" |
22 #import "chrome/browser/ui/cocoa/event_utils.h" | 23 #import "chrome/browser/ui/cocoa/event_utils.h" |
23 #import "chrome/browser/ui/cocoa/find_bar/find_bar_bridge.h" | 24 #import "chrome/browser/ui/cocoa/find_bar/find_bar_bridge.h" |
24 #import "chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.h" | 25 #import "chrome/browser/ui/cocoa/find_bar/find_bar_cocoa_controller.h" |
25 #import "chrome/browser/ui/cocoa/menu_controller.h" | 26 #import "chrome/browser/ui/cocoa/menu_controller.h" |
26 #import "chrome/browser/ui/cocoa/tab_contents/favicon_util.h" | 27 #import "chrome/browser/ui/cocoa/tab_contents/favicon_util.h" |
27 #import "chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.h" | 28 #import "chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.h" |
28 #import "chrome/browser/ui/cocoa/tabs/throbber_view.h" | 29 #import "chrome/browser/ui/cocoa/tabs/throbber_view.h" |
29 #include "chrome/browser/ui/panels/panel_bounds_animation.h" | 30 #include "chrome/browser/ui/panels/panel_bounds_animation.h" |
30 #include "chrome/browser/ui/panels/panel_browser_window_cocoa.h" | 31 #include "chrome/browser/ui/panels/panel_browser_window_cocoa.h" |
(...skipping 977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1008 [[self window] setLevel:NSDockWindowLevel]; | 1009 [[self window] setLevel:NSDockWindowLevel]; |
1009 } | 1010 } |
1010 | 1011 |
1011 - (void)enableResizeByMouse:(BOOL)enable { | 1012 - (void)enableResizeByMouse:(BOOL)enable { |
1012 if (![self isWindowLoaded]) | 1013 if (![self isWindowLoaded]) |
1013 return; | 1014 return; |
1014 [[self window] invalidateCursorRectsForView:overlayView_]; | 1015 [[self window] invalidateCursorRectsForView:overlayView_]; |
1015 } | 1016 } |
1016 | 1017 |
1017 @end | 1018 @end |
OLD | NEW |