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

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

Issue 7677001: Some fixes to panel support on Windows: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 void EndDragging(bool cancelled); 39 void EndDragging(bool cancelled);
40 40
41 // Should we bring up the titlebar, given the current mouse point? 41 // Should we bring up the titlebar, given the current mouse point?
42 bool ShouldBringUpTitlebarForAllMinimizedPanels(int mouse_x, 42 bool ShouldBringUpTitlebarForAllMinimizedPanels(int mouse_x,
43 int mouse_y) const; 43 int mouse_y) const;
44 44
45 // Brings up or down the title-bar for all minimized panels. 45 // Brings up or down the title-bar for all minimized panels.
46 void BringUpOrDownTitlebarForAllMinimizedPanels(bool bring_up); 46 void BringUpOrDownTitlebarForAllMinimizedPanels(bool bring_up);
47 47
48 int num_panels() const { return panels_.size(); } 48 int num_panels() const { return panels_.size(); }
49 bool is_dragging_panel() const;
49 50
50 private: 51 private:
51 friend class PanelBrowserTest; 52 friend class PanelBrowserTest;
52 53
53 typedef std::vector<Panel*> Panels; 54 typedef std::vector<Panel*> Panels;
54 55
55 PanelManager(); 56 PanelManager();
56 57
57 // Applies the new work area. This is called by OnDisplayChanged and the test 58 // Applies the new work area. This is called by OnDisplayChanged and the test
58 // code. 59 // code.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 109
109 // Bounds of the panel to drag. It is first set to the original bounds when 110 // Bounds of the panel to drag. It is first set to the original bounds when
110 // the dragging happens. Then it is updated to the position that will be set 111 // the dragging happens. Then it is updated to the position that will be set
111 // to when the dragging ends. 112 // to when the dragging ends.
112 gfx::Rect dragging_panel_bounds_; 113 gfx::Rect dragging_panel_bounds_;
113 114
114 DISALLOW_COPY_AND_ASSIGN(PanelManager); 115 DISALLOW_COPY_AND_ASSIGN(PanelManager);
115 }; 116 };
116 117
117 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ 118 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698