| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
| 12 #include "chrome/browser/debugger/devtools_window.h" | |
| 13 #include "chrome/browser/prefs/pref_service.h" | 12 #include "chrome/browser/prefs/pref_service.h" |
| 14 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 14 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
| 16 #import "chrome/browser/ui/cocoa/view_id_util.h" | 15 #import "chrome/browser/ui/cocoa/view_id_util.h" |
| 17 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
| 17 #include "content/browser/debugger/devtools_window.h" |
| 18 #include "content/browser/tab_contents/tab_contents.h" | 18 #include "content/browser/tab_contents/tab_contents.h" |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 // Minimal height of devtools pane or content pane when devtools are docked | 22 // Minimal height of devtools pane or content pane when devtools are docked |
| 23 // to the browser window. | 23 // to the browser window. |
| 24 const int kMinDevToolsHeight = 50; | 24 const int kMinDevToolsHeight = 50; |
| 25 const int kMinContentsHeight = 50; | 25 const int kMinContentsHeight = 50; |
| 26 | 26 |
| 27 } // end namespace | 27 } // end namespace |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 // Return NO for the devTools view to indicate that it should not be resized | 162 // Return NO for the devTools view to indicate that it should not be resized |
| 163 // automatically. It preserves the height set by the user and also keeps | 163 // automatically. It preserves the height set by the user and also keeps |
| 164 // view height the same while changing tabs when one of the tabs shows infobar | 164 // view height the same while changing tabs when one of the tabs shows infobar |
| 165 // and others are not. | 165 // and others are not. |
| 166 if ([[splitView_ subviews] indexOfObject:subview] == 1) | 166 if ([[splitView_ subviews] indexOfObject:subview] == 1) |
| 167 return NO; | 167 return NO; |
| 168 return YES; | 168 return YES; |
| 169 } | 169 } |
| 170 | 170 |
| 171 @end | 171 @end |
| OLD | NEW |