| 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/panels/panel.h" | 10 #include "chrome/browser/ui/panels/panel.h" |
| 10 #import "chrome/browser/ui/panels/panel_window_controller_cocoa.h" | 11 #import "chrome/browser/ui/panels/panel_window_controller_cocoa.h" |
| 11 | 12 |
| 12 namespace { | 13 namespace { |
| 13 | 14 |
| 14 // Use this instead of 0 for minimum size of a window when doing opening and | 15 // Use this instead of 0 for minimum size of a window when doing opening and |
| 15 // closing animations, since OSX window manager does not like 0-sized windows | 16 // closing animations, since OSX window manager does not like 0-sized windows |
| 16 // (according to avi@). | 17 // (according to avi@). |
| 17 const int kMinimumWindowSize = 1; | 18 const int kMinimumWindowSize = 1; |
| 18 | 19 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 } | 128 } |
| 128 | 129 |
| 129 void PanelBrowserWindowCocoa::UpdatePanelTitleBar() { | 130 void PanelBrowserWindowCocoa::UpdatePanelTitleBar() { |
| 130 NOTIMPLEMENTED(); | 131 NOTIMPLEMENTED(); |
| 131 } | 132 } |
| 132 | 133 |
| 133 void PanelBrowserWindowCocoa::ShowTaskManagerForPanel() { | 134 void PanelBrowserWindowCocoa::ShowTaskManagerForPanel() { |
| 134 NOTIMPLEMENTED(); | 135 NOTIMPLEMENTED(); |
| 135 } | 136 } |
| 136 | 137 |
| 138 FindBar* PanelBrowserWindowCocoa::CreateFindBar() { |
| 139 FindBarBridge* bridge = new FindBarBridge(); |
| 140 [controller_ addFindBar:bridge->find_bar_cocoa_controller()]; |
| 141 return bridge; |
| 142 } |
| 143 |
| 137 void PanelBrowserWindowCocoa::NotifyPanelOnUserChangedTheme() { | 144 void PanelBrowserWindowCocoa::NotifyPanelOnUserChangedTheme() { |
| 138 NOTIMPLEMENTED(); | 145 NOTIMPLEMENTED(); |
| 139 } | 146 } |
| 140 | 147 |
| 141 void PanelBrowserWindowCocoa::DrawAttention() { | 148 void PanelBrowserWindowCocoa::DrawAttention() { |
| 142 NOTIMPLEMENTED(); | 149 NOTIMPLEMENTED(); |
| 143 } | 150 } |
| 144 | 151 |
| 145 bool PanelBrowserWindowCocoa::IsDrawingAttention() const { | 152 bool PanelBrowserWindowCocoa::IsDrawingAttention() const { |
| 146 NOTIMPLEMENTED(); | 153 NOTIMPLEMENTED(); |
| 147 return false; | 154 return false; |
| 148 } | 155 } |
| 149 | 156 |
| 150 Browser* PanelBrowserWindowCocoa::GetPanelBrowser() const { | 157 Browser* PanelBrowserWindowCocoa::GetPanelBrowser() const { |
| 151 return browser(); | 158 return browser(); |
| 152 } | 159 } |
| 153 | 160 |
| 154 void PanelBrowserWindowCocoa::DestroyPanelBrowser() { | 161 void PanelBrowserWindowCocoa::DestroyPanelBrowser() { |
| 155 [controller_ close]; | 162 [controller_ close]; |
| 156 controller_ = NULL; | 163 controller_ = NULL; |
| 157 } | 164 } |
| 158 | 165 |
| 159 NativePanelTesting* PanelBrowserWindowCocoa::GetNativePanelTesting() { | 166 NativePanelTesting* PanelBrowserWindowCocoa::GetNativePanelTesting() { |
| 160 return this; | 167 return this; |
| 161 } | 168 } |
| OLD | NEW |