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 #include "chrome/browser/ui/panels/panel_browser_window_cocoa.h" | 5 #include "chrome/browser/ui/panels/panel_browser_window_cocoa.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
9 #include "chrome/browser/ui/cocoa/find_bar/find_bar_bridge.h" | 9 #include "chrome/browser/ui/cocoa/find_bar/find_bar_bridge.h" |
10 #import "chrome/browser/ui/cocoa/browser_window_utils.h" | 10 #import "chrome/browser/ui/cocoa/browser_window_utils.h" |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 } | 105 } |
106 | 106 |
107 void PanelBrowserWindowCocoa::OnPanelExpansionStateChanged( | 107 void PanelBrowserWindowCocoa::OnPanelExpansionStateChanged( |
108 Panel::ExpansionState expansion_state) { | 108 Panel::ExpansionState expansion_state) { |
109 int height; // New height of the Panel in screen coordinates. | 109 int height; // New height of the Panel in screen coordinates. |
110 switch (expansion_state) { | 110 switch (expansion_state) { |
111 case Panel::EXPANDED: | 111 case Panel::EXPANDED: |
112 height = restored_height_; | 112 height = restored_height_; |
113 break; | 113 break; |
114 case Panel::TITLE_ONLY: | 114 case Panel::TITLE_ONLY: |
115 height = [controller_ titlebarHeightInScreeenCoordinates]; | 115 height = [controller_ titlebarHeightInScreenCoordinates]; |
116 break; | 116 break; |
117 case Panel::MINIMIZED: | 117 case Panel::MINIMIZED: |
118 height = 3; // TODO(dimich) merge with GTK patch which defines it better. | 118 height = 3; // TODO(dimich) merge with GTK patch which defines it better. |
119 break; | 119 break; |
120 default: | 120 default: |
121 NOTREACHED(); | 121 NOTREACHED(); |
122 height = restored_height_; | 122 height = restored_height_; |
123 break; | 123 break; |
124 } | 124 } |
125 | 125 |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 | 329 |
330 void NativePanelTestingCocoa::SetMousePositionForMinimizeRestore( | 330 void NativePanelTestingCocoa::SetMousePositionForMinimizeRestore( |
331 const gfx::Point& hover_point) { | 331 const gfx::Point& hover_point) { |
332 NOTIMPLEMENTED(); | 332 NOTIMPLEMENTED(); |
333 } | 333 } |
334 | 334 |
335 int NativePanelTestingCocoa::TitleOnlyHeight() const { | 335 int NativePanelTestingCocoa::TitleOnlyHeight() const { |
336 NOTIMPLEMENTED(); | 336 NOTIMPLEMENTED(); |
337 return -1; | 337 return -1; |
338 } | 338 } |
OLD | NEW |