Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Side by Side Diff: chrome/browser/ui/panels/panel_browser_view.cc

Issue 9129013: Panel Overflow on Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cr feedback Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_bounds_animation.h" 10 #include "chrome/browser/ui/panels/panel_bounds_animation.h"
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 400
401 void PanelBrowserView::EnsurePanelFullyVisible() { 401 void PanelBrowserView::EnsurePanelFullyVisible() {
402 #if defined(OS_WIN) && !defined(USE_AURA) 402 #if defined(OS_WIN) && !defined(USE_AURA)
403 ::SetWindowPos(GetNativeHandle(), HWND_TOP, 0, 0, 0, 0, 403 ::SetWindowPos(GetNativeHandle(), HWND_TOP, 0, 0, 0, 0,
404 SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE); 404 SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE);
405 #else 405 #else
406 NOTIMPLEMENTED(); 406 NOTIMPLEMENTED();
407 #endif 407 #endif
408 } 408 }
409 409
410 void PanelBrowserView::ApplyVisualStyleForStrip(PanelStripType newPanelStrip) {
411 }
412
410 PanelBrowserFrameView* PanelBrowserView::GetFrameView() const { 413 PanelBrowserFrameView* PanelBrowserView::GetFrameView() const {
411 return static_cast<PanelBrowserFrameView*>(frame()->GetFrameView()); 414 return static_cast<PanelBrowserFrameView*>(frame()->GetFrameView());
412 } 415 }
413 416
414 bool PanelBrowserView::OnTitlebarMousePressed(const gfx::Point& location) { 417 bool PanelBrowserView::OnTitlebarMousePressed(const gfx::Point& location) {
415 // |location| is in the view's coordinate system. Convert it to the screen 418 // |location| is in the view's coordinate system. Convert it to the screen
416 // coordinate system. 419 // coordinate system.
417 mouse_location_ = location; 420 mouse_location_ = location;
418 views::View::ConvertPointToScreen(this, &mouse_location_); 421 views::View::ConvertPointToScreen(this, &mouse_location_);
419 422
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 } 609 }
607 610
608 bool NativePanelTestingWin::IsWindowSizeKnown() const { 611 bool NativePanelTestingWin::IsWindowSizeKnown() const {
609 return true; 612 return true;
610 } 613 }
611 614
612 bool NativePanelTestingWin::IsAnimatingBounds() const { 615 bool NativePanelTestingWin::IsAnimatingBounds() const {
613 return panel_browser_view_->bounds_animator_.get() && 616 return panel_browser_view_->bounds_animator_.get() &&
614 panel_browser_view_->bounds_animator_->is_animating(); 617 panel_browser_view_->bounds_animator_->is_animating();
615 } 618 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698