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

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 win_aura 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/browser_window.h" 10 #include "chrome/browser/ui/browser_window.h"
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 gboolean PanelBrowserWindowGtk::OnTitlebarButtonReleaseEvent( 570 gboolean PanelBrowserWindowGtk::OnTitlebarButtonReleaseEvent(
571 GtkWidget* widget, GdkEventButton* event) { 571 GtkWidget* widget, GdkEventButton* event) {
572 if (event->button != 1) 572 if (event->button != 1)
573 return TRUE; 573 return TRUE;
574 574
575 panel_->OnTitlebarClicked((event->state & GDK_CONTROL_MASK) ? 575 panel_->OnTitlebarClicked((event->state & GDK_CONTROL_MASK) ?
576 panel::APPLY_TO_ALL : panel::NO_MODIFIER); 576 panel::APPLY_TO_ALL : panel::NO_MODIFIER);
577 return TRUE; 577 return TRUE;
578 } 578 }
579 579
580 void PanelBrowserWindowGtk::PanelExpansionStateChanging(
581 Panel::ExpansionState old_state, Panel::ExpansionState new_state) {
582 }
583
580 // NativePanelTesting implementation. 584 // NativePanelTesting implementation.
581 class NativePanelTestingGtk : public NativePanelTesting { 585 class NativePanelTestingGtk : public NativePanelTesting {
582 public: 586 public:
583 explicit NativePanelTestingGtk( 587 explicit NativePanelTestingGtk(
584 PanelBrowserWindowGtk* panel_browser_window_gtk); 588 PanelBrowserWindowGtk* panel_browser_window_gtk);
585 589
586 private: 590 private:
587 virtual void PressLeftMouseButtonTitlebar( 591 virtual void PressLeftMouseButtonTitlebar(
588 const gfx::Point& mouse_location, panel::ClickModifier modifier) OVERRIDE; 592 const gfx::Point& mouse_location, panel::ClickModifier modifier) OVERRIDE;
589 virtual void ReleaseMouseButtonTitlebar( 593 virtual void ReleaseMouseButtonTitlebar(
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 break; 716 break;
713 case RESTORE_BUTTON: 717 case RESTORE_BUTTON:
714 button = titlebar->unminimize_button(); 718 button = titlebar->unminimize_button();
715 break; 719 break;
716 default: 720 default:
717 NOTREACHED(); 721 NOTREACHED();
718 return false; 722 return false;
719 } 723 }
720 return gtk_widget_get_visible(button->widget()); 724 return gtk_widget_get_visible(button->widget());
721 } 725 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_window_gtk.h ('k') | chrome/browser/ui/panels/taskbar_window_thumbnailer_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698