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

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

Issue 10408047: Fix bug 105043: Panels [WIN]: For minimize panels, taskbar hover preview show the 4-pixel represent… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix per more feedback Created 8 years, 7 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_window_gtk.h" 5 #include "chrome/browser/ui/panels/panel_browser_window_gtk.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/browser/ui/browser_list.h" 9 #include "chrome/browser/ui/browser_list.h"
10 #include "chrome/browser/ui/gtk/browser_titlebar.h" 10 #include "chrome/browser/ui/gtk/browser_titlebar.h"
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 gboolean PanelBrowserWindowGtk::OnTitlebarButtonReleaseEvent( 568 gboolean PanelBrowserWindowGtk::OnTitlebarButtonReleaseEvent(
569 GtkWidget* widget, GdkEventButton* event) { 569 GtkWidget* widget, GdkEventButton* event) {
570 if (event->button != 1) 570 if (event->button != 1)
571 return TRUE; 571 return TRUE;
572 572
573 panel_->OnTitlebarClicked((event->state & GDK_CONTROL_MASK) ? 573 panel_->OnTitlebarClicked((event->state & GDK_CONTROL_MASK) ?
574 panel::APPLY_TO_ALL : panel::NO_MODIFIER); 574 panel::APPLY_TO_ALL : panel::NO_MODIFIER);
575 return TRUE; 575 return TRUE;
576 } 576 }
577 577
578 void PanelBrowserWindowGtk::PanelExpansionStateChanging(
579 Panel::ExpansionState old_state, Panel::ExpansionState new_state) {
580 }
581
578 // NativePanelTesting implementation. 582 // NativePanelTesting implementation.
579 class NativePanelTestingGtk : public NativePanelTesting { 583 class NativePanelTestingGtk : public NativePanelTesting {
580 public: 584 public:
581 explicit NativePanelTestingGtk( 585 explicit NativePanelTestingGtk(
582 PanelBrowserWindowGtk* panel_browser_window_gtk); 586 PanelBrowserWindowGtk* panel_browser_window_gtk);
583 587
584 private: 588 private:
585 virtual void PressLeftMouseButtonTitlebar( 589 virtual void PressLeftMouseButtonTitlebar(
586 const gfx::Point& mouse_location, panel::ClickModifier modifier) OVERRIDE; 590 const gfx::Point& mouse_location, panel::ClickModifier modifier) OVERRIDE;
587 virtual void ReleaseMouseButtonTitlebar( 591 virtual void ReleaseMouseButtonTitlebar(
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 break; 714 break;
711 case RESTORE_BUTTON: 715 case RESTORE_BUTTON:
712 button = titlebar->unminimize_button(); 716 button = titlebar->unminimize_button();
713 break; 717 break;
714 default: 718 default:
715 NOTREACHED(); 719 NOTREACHED();
716 return false; 720 return false;
717 } 721 }
718 return gtk_widget_get_visible(button->widget()); 722 return gtk_widget_get_visible(button->widget());
719 } 723 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698