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 #import "chrome/browser/ui/cocoa/dev_tools_controller.h" | 5 #import "chrome/browser/ui/cocoa/dev_tools_controller.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include <Cocoa/Cocoa.h> | 9 #include <Cocoa/Cocoa.h> |
10 | 10 |
11 #import "base/mac/foundation_util.h" | 11 #import "base/mac/foundation_util.h" |
| 12 #include "base/prefs/pref_service.h" |
12 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
13 #include "chrome/browser/prefs/pref_service.h" | |
14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
15 #import "chrome/browser/ui/cocoa/view_id_util.h" | 15 #import "chrome/browser/ui/cocoa/view_id_util.h" |
16 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
17 #include "content/public/browser/web_contents.h" | 17 #include "content/public/browser/web_contents.h" |
18 | 18 |
19 using content::WebContents; | 19 using content::WebContents; |
20 | 20 |
21 @interface GraySplitView : NSSplitView { | 21 @interface GraySplitView : NSSplitView { |
22 CGFloat topContentOffset_; | 22 CGFloat topContentOffset_; |
23 } | 23 } |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 return [splitView_ topContentOffset]; | 232 return [splitView_ topContentOffset]; |
233 } | 233 } |
234 return proposedPosition; | 234 return proposedPosition; |
235 } | 235 } |
236 | 236 |
237 -(void)splitViewWillResizeSubviews:(NSNotification *)notification { | 237 -(void)splitViewWillResizeSubviews:(NSNotification *)notification { |
238 [[splitView_ window] disableScreenUpdatesUntilFlush]; | 238 [[splitView_ window] disableScreenUpdatesUntilFlush]; |
239 } | 239 } |
240 | 240 |
241 @end | 241 @end |
OLD | NEW |