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 #include "chrome/browser/ui/panels/panel.h" | 10 #include "chrome/browser/ui/panels/panel.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 bounds_ = bounds; | 84 bounds_ = bounds; |
85 NSRect frame = ConvertCoordinatesToCocoa(bounds); | 85 NSRect frame = ConvertCoordinatesToCocoa(bounds); |
86 [[controller_ window] setFrame:frame display:YES animate:YES]; | 86 [[controller_ window] setFrame:frame display:YES animate:YES]; |
87 } | 87 } |
88 | 88 |
89 void PanelBrowserWindowCocoa::OnPanelExpansionStateChanged( | 89 void PanelBrowserWindowCocoa::OnPanelExpansionStateChanged( |
90 Panel::ExpansionState expansion_state) { | 90 Panel::ExpansionState expansion_state) { |
91 NOTIMPLEMENTED(); | 91 NOTIMPLEMENTED(); |
92 } | 92 } |
93 | 93 |
94 bool PanelBrowserWindowCocoa::ShouldBringUpPanelTitleBar(int mouse_x, | 94 bool PanelBrowserWindowCocoa::ShouldBringUpPanelTitlebar(int mouse_x, |
95 int mouse_y) const { | 95 int mouse_y) const { |
96 NOTIMPLEMENTED(); | 96 NOTIMPLEMENTED(); |
97 return false; | 97 return false; |
98 } | 98 } |
99 | 99 |
100 void PanelBrowserWindowCocoa::ClosePanel() { | 100 void PanelBrowserWindowCocoa::ClosePanel() { |
101 if (isClosed()) | 101 if (isClosed()) |
102 return; | 102 return; |
103 | 103 |
104 NSWindow* window = [controller_ window]; | 104 NSWindow* window = [controller_ window]; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 controller_ = NULL; | 167 controller_ = NULL; |
168 } | 168 } |
169 | 169 |
170 // NativePanelTesting implementation. | 170 // NativePanelTesting implementation. |
171 | 171 |
172 // static | 172 // static |
173 NativePanelTesting* NativePanelTesting::Create(NativePanel* native_panel) { | 173 NativePanelTesting* NativePanelTesting::Create(NativePanel* native_panel) { |
174 NOTIMPLEMENTED(); | 174 NOTIMPLEMENTED(); |
175 return NULL; | 175 return NULL; |
176 } | 176 } |
OLD | NEW |