| 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_view.h" | 5 #include "chrome/browser/ui/panels/panel_browser_view.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "chrome/browser/ui/panels/panel.h" | 9 #include "chrome/browser/ui/panels/panel.h" |
| 10 #include "chrome/browser/ui/panels/panel_browser_frame_view.h" | 10 #include "chrome/browser/ui/panels/panel_browser_frame_view.h" |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 } | 370 } |
| 371 | 371 |
| 372 Browser* PanelBrowserView::GetPanelBrowser() const { | 372 Browser* PanelBrowserView::GetPanelBrowser() const { |
| 373 return browser(); | 373 return browser(); |
| 374 } | 374 } |
| 375 | 375 |
| 376 void PanelBrowserView::DestroyPanelBrowser() { | 376 void PanelBrowserView::DestroyPanelBrowser() { |
| 377 DestroyBrowser(); | 377 DestroyBrowser(); |
| 378 } | 378 } |
| 379 | 379 |
| 380 gfx::Size PanelBrowserView::GetIconifiedPanelSize() const { |
| 381 // TODO(jianli): to be implemented. |
| 382 return gfx::Size(); |
| 383 } |
| 384 |
| 385 void PanelBrowserView::EnsurePanelFullyVisible() { |
| 386 // TODO(jianli): to be implemented. |
| 387 } |
| 388 |
| 389 void PanelBrowserView::UpdatePanelIconInDesktopBar(PanelIconState state) { |
| 390 // TODO(jianli): to be implemented. |
| 391 } |
| 392 |
| 380 PanelBrowserFrameView* PanelBrowserView::GetFrameView() const { | 393 PanelBrowserFrameView* PanelBrowserView::GetFrameView() const { |
| 381 return static_cast<PanelBrowserFrameView*>(frame()->GetFrameView()); | 394 return static_cast<PanelBrowserFrameView*>(frame()->GetFrameView()); |
| 382 } | 395 } |
| 383 | 396 |
| 384 bool PanelBrowserView::OnTitlebarMousePressed(const gfx::Point& location) { | 397 bool PanelBrowserView::OnTitlebarMousePressed(const gfx::Point& location) { |
| 385 // |location| is in the view's coordinate system. Convert it to the screen | 398 // |location| is in the view's coordinate system. Convert it to the screen |
| 386 // coordinate system. | 399 // coordinate system. |
| 387 mouse_location_ = location; | 400 mouse_location_ = location; |
| 388 views::View::ConvertPointToScreen(this, &mouse_location_); | 401 views::View::ConvertPointToScreen(this, &mouse_location_); |
| 389 | 402 |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 556 } | 569 } |
| 557 | 570 |
| 558 bool NativePanelTestingWin::IsWindowSizeKnown() const { | 571 bool NativePanelTestingWin::IsWindowSizeKnown() const { |
| 559 return true; | 572 return true; |
| 560 } | 573 } |
| 561 | 574 |
| 562 bool NativePanelTestingWin::IsAnimatingBounds() const { | 575 bool NativePanelTestingWin::IsAnimatingBounds() const { |
| 563 return panel_browser_view_->bounds_animator_.get() && | 576 return panel_browser_view_->bounds_animator_.get() && |
| 564 panel_browser_view_->bounds_animator_->is_animating(); | 577 panel_browser_view_->bounds_animator_->is_animating(); |
| 565 } | 578 } |
| OLD | NEW |