Chromium Code Reviews| 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 16 matching lines...) Expand all Loading... | |
| 121 | 121 |
| 122 bool PanelBrowserWindowCocoa::IsPanelActive() const { | 122 bool PanelBrowserWindowCocoa::IsPanelActive() const { |
| 123 NOTIMPLEMENTED(); | 123 NOTIMPLEMENTED(); |
| 124 return false; | 124 return false; |
| 125 } | 125 } |
| 126 | 126 |
| 127 gfx::NativeWindow PanelBrowserWindowCocoa::GetNativePanelHandle() { | 127 gfx::NativeWindow PanelBrowserWindowCocoa::GetNativePanelHandle() { |
| 128 return [controller_ window]; | 128 return [controller_ window]; |
| 129 } | 129 } |
| 130 | 130 |
| 131 void PanelBrowserWindowCocoa::UpdatePanelTitleBar() { | 131 void PanelBrowserWindowCocoa::UpdatePanelTitlebar() { |
|
jianli
2011/08/12 21:34:51
ditto.
prasadt
2011/08/12 21:59:30
Done.
| |
| 132 NOTIMPLEMENTED(); | 132 NOTIMPLEMENTED(); |
| 133 } | 133 } |
| 134 | 134 |
| 135 void PanelBrowserWindowCocoa::ShowTaskManagerForPanel() { | 135 void PanelBrowserWindowCocoa::ShowTaskManagerForPanel() { |
| 136 NOTIMPLEMENTED(); | 136 NOTIMPLEMENTED(); |
| 137 } | 137 } |
| 138 | 138 |
| 139 FindBar* PanelBrowserWindowCocoa::CreatePanelFindBar() { | 139 FindBar* PanelBrowserWindowCocoa::CreatePanelFindBar() { |
| 140 DCHECK(!has_find_bar_) << "find bar should only be created once"; | 140 DCHECK(!has_find_bar_) << "find bar should only be created once"; |
| 141 has_find_bar_ = true; | 141 has_find_bar_ = true; |
| (...skipping 25 matching lines...) Expand all 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 |