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 #include <cmath> | 8 #include <cmath> |
9 | 9 |
10 #include <Cocoa/Cocoa.h> | 10 #include <Cocoa/Cocoa.h> |
11 | 11 |
12 #include "base/prefs/pref_service.h" | 12 #include "base/prefs/pref_service.h" |
13 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.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" | |
17 #include "content/public/browser/web_contents.h" | 16 #include "content/public/browser/web_contents.h" |
18 #include "ui/base/cocoa/base_view.h" | 17 #include "ui/base/cocoa/base_view.h" |
19 #include "ui/base/cocoa/focus_tracker.h" | 18 #include "ui/base/cocoa/focus_tracker.h" |
20 #include "ui/gfx/mac/scoped_ns_disable_screen_updates.h" | 19 #include "ui/gfx/mac/scoped_ns_disable_screen_updates.h" |
21 #include "ui/gfx/size_conversions.h" | 20 #include "ui/gfx/size_conversions.h" |
22 | 21 |
23 using content::WebContents; | 22 using content::WebContents; |
24 | 23 |
25 @interface DevToolsContainerView : BaseView { | 24 @interface DevToolsContainerView : BaseView { |
26 DevToolsContentsResizingStrategy strategy_; | 25 DevToolsContentsResizingStrategy strategy_; |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 contents->SetAllowOtherViews(false); | 154 contents->SetAllowOtherViews(false); |
156 } | 155 } |
157 | 156 |
158 BOOL result = [devToolsContainerView_ setDevToolsView:devToolsView | 157 BOOL result = [devToolsContainerView_ setDevToolsView:devToolsView |
159 withStrategy:strategy]; | 158 withStrategy:strategy]; |
160 [devToolsContainerView_ adjustSubviews]; | 159 [devToolsContainerView_ adjustSubviews]; |
161 return result; | 160 return result; |
162 } | 161 } |
163 | 162 |
164 @end | 163 @end |
OLD | NEW |