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

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

Issue 10187021: Add key modifier to minimize/restore button click to minimize/restore-all panels for Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ 6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/gtest_prod_util.h" 9 #include "base/gtest_prod_util.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 20 matching lines...) Expand all
31 31
32 Panel* panel() const { return panel_.get(); } 32 Panel* panel() const { return panel_.get(); }
33 bool closed() const { return closed_; } 33 bool closed() const { return closed_; }
34 bool focused() const { return focused_; } 34 bool focused() const { return focused_; }
35 35
36 PanelBrowserFrameView* GetFrameView() const; 36 PanelBrowserFrameView* GetFrameView() const;
37 37
38 // Called from frame view when titlebar receives a mouse event. 38 // Called from frame view when titlebar receives a mouse event.
39 // Return true if the event is handled. 39 // Return true if the event is handled.
40 // |mouse_location| is in screen coordinates. 40 // |mouse_location| is in screen coordinates.
41 bool OnTitlebarMousePressed(const gfx::Point& mouse_location); 41 bool OnTitlebarMousePressed(const views::MouseEvent& event);
42 bool OnTitlebarMouseDragged(const gfx::Point& mouse_location); 42 bool OnTitlebarMouseDragged(const views::MouseEvent& event);
43 bool OnTitlebarMouseReleased(); 43 bool OnTitlebarMouseReleased(const views::MouseEvent& event);
44 bool OnTitlebarMouseCaptureLost(); 44 bool OnTitlebarMouseCaptureLost();
45 45
46 // Called from frame view when minimize/restore button is pressed.
47 void MinimizeButtonPressed(const views::Event& event);
48 void RestoreButtonPressed(const views::Event& event);
49
46 private: 50 private:
47 friend class NativePanelTestingWin; 51 friend class NativePanelTestingWin;
48 friend class PanelBrowserViewTest; 52 friend class PanelBrowserViewTest;
49 53
50 enum MouseDraggingState { 54 enum MouseDraggingState {
51 NO_DRAGGING, 55 NO_DRAGGING,
52 DRAGGING_STARTED, 56 DRAGGING_STARTED,
53 DRAGGING_ENDED 57 DRAGGING_ENDED
54 }; 58 };
55 59
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 // The last view that had focus in the panel. This is saved so that focus can 183 // The last view that had focus in the panel. This is saved so that focus can
180 // be restored properly when a drag ends. 184 // be restored properly when a drag ends.
181 views::View* old_focused_view_; 185 views::View* old_focused_view_;
182 186
183 content::NotificationRegistrar registrar_; 187 content::NotificationRegistrar registrar_;
184 188
185 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); 189 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView);
186 }; 190 };
187 191
188 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ 192 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698