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::IconOnlySize() 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 |
380 PanelBrowserFrameView* PanelBrowserView::GetFrameView() const { | 389 PanelBrowserFrameView* PanelBrowserView::GetFrameView() const { |
381 return static_cast<PanelBrowserFrameView*>(frame()->GetFrameView()); | 390 return static_cast<PanelBrowserFrameView*>(frame()->GetFrameView()); |
382 } | 391 } |
383 | 392 |
384 bool PanelBrowserView::OnTitlebarMousePressed(const gfx::Point& location) { | 393 bool PanelBrowserView::OnTitlebarMousePressed(const gfx::Point& location) { |
385 // |location| is in the view's coordinate system. Convert it to the screen | 394 // |location| is in the view's coordinate system. Convert it to the screen |
386 // coordinate system. | 395 // coordinate system. |
387 mouse_location_ = location; | 396 mouse_location_ = location; |
388 views::View::ConvertPointToScreen(this, &mouse_location_); | 397 views::View::ConvertPointToScreen(this, &mouse_location_); |
389 | 398 |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
556 } | 565 } |
557 | 566 |
558 bool NativePanelTestingWin::IsWindowSizeKnown() const { | 567 bool NativePanelTestingWin::IsWindowSizeKnown() const { |
559 return true; | 568 return true; |
560 } | 569 } |
561 | 570 |
562 bool NativePanelTestingWin::IsAnimatingBounds() const { | 571 bool NativePanelTestingWin::IsAnimatingBounds() const { |
563 return panel_browser_view_->bounds_animator_.get() && | 572 return panel_browser_view_->bounds_animator_.get() && |
564 panel_browser_view_->bounds_animator_->is_animating(); | 573 panel_browser_view_->bounds_animator_->is_animating(); |
565 } | 574 } |
OLD | NEW |