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/tabs/tab_strip_model.h" | 8 #include "chrome/browser/tabs/tab_strip_model.h" |
9 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
10 #include "chrome/browser/ui/browser_list.h" | 10 #include "chrome/browser/ui/browser_list.h" |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 } | 240 } |
241 | 241 |
242 void PanelBrowserWindowCocoa::HandlePanelKeyboardEvent( | 242 void PanelBrowserWindowCocoa::HandlePanelKeyboardEvent( |
243 const NativeWebKeyboardEvent& event) { | 243 const NativeWebKeyboardEvent& event) { |
244 if ([BrowserWindowUtils shouldHandleKeyboardEvent:event]) { | 244 if ([BrowserWindowUtils shouldHandleKeyboardEvent:event]) { |
245 [BrowserWindowUtils handleKeyboardEvent:event.os_event | 245 [BrowserWindowUtils handleKeyboardEvent:event.os_event |
246 inWindow:GetNativePanelHandle()]; | 246 inWindow:GetNativePanelHandle()]; |
247 } | 247 } |
248 } | 248 } |
249 | 249 |
| 250 void PanelBrowserWindowCocoa::FullScreenModeChanged( |
| 251 bool is_full_screen) { |
| 252 [controller_ fullScreenModeChanged:is_full_screen]; |
| 253 } |
| 254 |
250 Browser* PanelBrowserWindowCocoa::GetPanelBrowser() const { | 255 Browser* PanelBrowserWindowCocoa::GetPanelBrowser() const { |
251 return browser(); | 256 return browser(); |
252 } | 257 } |
253 | 258 |
254 void PanelBrowserWindowCocoa::DestroyPanelBrowser() { | 259 void PanelBrowserWindowCocoa::DestroyPanelBrowser() { |
255 [controller_ close]; | 260 [controller_ close]; |
256 } | 261 } |
257 | 262 |
258 gfx::Size PanelBrowserWindowCocoa::IconOnlySize() const { | 263 gfx::Size PanelBrowserWindowCocoa::IconOnlySize() const { |
259 // TODO(dimich): to be implemented. | 264 // TODO(dimich): to be implemented. |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 return false; | 372 return false; |
368 } | 373 } |
369 | 374 |
370 bool NativePanelTestingCocoa::IsWindowSizeKnown() const { | 375 bool NativePanelTestingCocoa::IsWindowSizeKnown() const { |
371 return true; | 376 return true; |
372 } | 377 } |
373 | 378 |
374 bool NativePanelTestingCocoa::IsAnimatingBounds() const { | 379 bool NativePanelTestingCocoa::IsAnimatingBounds() const { |
375 return [native_panel_window_->controller_ isAnimatingBounds]; | 380 return [native_panel_window_->controller_ isAnimatingBounds]; |
376 } | 381 } |
OLD | NEW |