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

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

Issue 9616037: Change panel drag related methods to use mouse location in screen coordinates. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch to reland Created 8 years, 9 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_MANAGER_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ 6 #define CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 28 matching lines...) Expand all
39 // later. 39 // later.
40 Panel* CreatePanel(Browser* browser); 40 Panel* CreatePanel(Browser* browser);
41 41
42 // Close all panels (asynchronous). Panels will be removed after closing. 42 // Close all panels (asynchronous). Panels will be removed after closing.
43 void CloseAll(); 43 void CloseAll();
44 44
45 // Asynchronous confirmation of panel having been closed. 45 // Asynchronous confirmation of panel having been closed.
46 void OnPanelClosed(Panel* panel); 46 void OnPanelClosed(Panel* panel);
47 47
48 // Drags the given panel. 48 // Drags the given panel.
49 void StartDragging(Panel* panel); 49 // |mouse_location| is in screen coordinate system.
50 void Drag(int delta_x, int delta_y); 50 void StartDragging(Panel* panel, const gfx::Point& mouse_location);
51 void Drag(const gfx::Point& mouse_location);
51 void EndDragging(bool cancelled); 52 void EndDragging(bool cancelled);
52 53
53 // Invoked when a panel's expansion state changes. 54 // Invoked when a panel's expansion state changes.
54 void OnPanelExpansionStateChanged(Panel* panel); 55 void OnPanelExpansionStateChanged(Panel* panel);
55 56
56 // Invoked when the preferred window size of the given panel might need to 57 // Invoked when the preferred window size of the given panel might need to
57 // get changed. 58 // get changed.
58 void OnWindowAutoResized(Panel* panel, 59 void OnWindowAutoResized(Panel* panel,
59 const gfx::Size& preferred_window_size); 60 const gfx::Size& preferred_window_size);
60 61
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 bool is_full_screen_; 215 bool is_full_screen_;
215 216
216 // True only while moving panels to overflow. Used to prevent moving panels 217 // True only while moving panels to overflow. Used to prevent moving panels
217 // out of overflow while in the process of moving panels to overflow. 218 // out of overflow while in the process of moving panels to overflow.
218 bool is_processing_overflow_; 219 bool is_processing_overflow_;
219 220
220 DISALLOW_COPY_AND_ASSIGN(PanelManager); 221 DISALLOW_COPY_AND_ASSIGN(PanelManager);
221 }; 222 };
222 223
223 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ 224 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_drag_controller.cc ('k') | chrome/browser/ui/panels/panel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698