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

Side by Side Diff: panels/panel_dock.h

Issue 6902072: wm: Update a lot of code to use structs from geometry.h. (Closed) Base URL: ssh://gitrw.chromium.org:9222/window_manager.git@master
Patch Set: move override-redirect stacking and visibility into Window Created 9 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) 2010 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium OS 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 WINDOW_MANAGER_PANELS_PANEL_DOCK_H_ 5 #ifndef WINDOW_MANAGER_PANELS_PANEL_DOCK_H_
6 #define WINDOW_MANAGER_PANELS_PANEL_DOCK_H_ 6 #define WINDOW_MANAGER_PANELS_PANEL_DOCK_H_
7 7
8 #include <map> 8 #include <map>
9 #include <tr1/memory> 9 #include <tr1/memory>
10 #include <vector> 10 #include <vector>
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 int height() const { return height_; } 49 int height() const { return height_; }
50 50
51 // Is the dock currently visible? 51 // Is the dock currently visible?
52 bool is_visible() const { return !panels_.empty(); } 52 bool is_visible() const { return !panels_.empty(); }
53 53
54 // Begin PanelContainer implementation. 54 // Begin PanelContainer implementation.
55 virtual void GetInputWindows(std::vector<XWindow>* windows_out); 55 virtual void GetInputWindows(std::vector<XWindow>* windows_out);
56 virtual void AddPanel(Panel* panel, PanelSource source); 56 virtual void AddPanel(Panel* panel, PanelSource source);
57 virtual void RemovePanel(Panel* panel); 57 virtual void RemovePanel(Panel* panel);
58 virtual bool ShouldAddDraggedPanel(const Panel* panel, 58 virtual bool ShouldAddDraggedPanel(const Panel* panel,
59 int drag_x, int drag_y); 59 const Point& drag_pos);
60 virtual void HandleInputWindowButtonPress(XWindow xid, 60 virtual void HandleInputWindowButtonPress(XWindow xid,
61 int x, int y, 61 const Point& relative_pos,
62 int x_root, int y_root, 62 const Point& absolute_pos,
63 int button, 63 int button,
64 XTime timestamp) {} 64 XTime timestamp) {}
65 virtual void HandleInputWindowButtonRelease(XWindow xid, 65 virtual void HandleInputWindowButtonRelease(XWindow xid,
66 int x, int y, 66 const Point& relative_pos,
67 int x_root, int y_root, 67 const Point& absolute_pos,
68 int button, 68 int button,
69 XTime timestamp) {} 69 XTime timestamp) {}
70 virtual void HandleInputWindowPointerEnter(XWindow xid, 70 virtual void HandleInputWindowPointerEnter(XWindow xid,
71 int x, int y, 71 const Point& relative_pos,
72 int x_root, int y_root, 72 const Point& absolute_pos,
73 XTime timestamp) {} 73 XTime timestamp) {}
74 virtual void HandleInputWindowPointerLeave(XWindow xid, 74 virtual void HandleInputWindowPointerLeave(XWindow xid,
75 int x, int y, 75 const Point& relative_pos,
76 int x_root, int y_root, 76 const Point& absolute_pos,
77 XTime timestamp) {} 77 XTime timestamp) {}
78 virtual void HandlePanelButtonPress(Panel* panel, 78 virtual void HandlePanelButtonPress(Panel* panel,
79 int button, 79 int button,
80 XTime timestamp); 80 XTime timestamp);
81 virtual void HandlePanelTitlebarPointerEnter(Panel* panel, XTime timestamp) {} 81 virtual void HandlePanelTitlebarPointerEnter(Panel* panel, XTime timestamp) {}
82 virtual void HandleSetPanelStateMessage(Panel* panel, bool expand); 82 virtual void HandleSetPanelStateMessage(Panel* panel, bool expand);
83 virtual bool HandleNotifyPanelDraggedMessage(Panel* panel, 83 virtual bool HandleNotifyPanelDraggedMessage(Panel* panel,
84 int drag_x, int drag_y); 84 const Point& drag_pos);
85 virtual void HandleNotifyPanelDragCompleteMessage(Panel* panel); 85 virtual void HandleNotifyPanelDragCompleteMessage(Panel* panel);
86 virtual void HandleFocusPanelMessage(Panel* panel, XTime timestamp); 86 virtual void HandleFocusPanelMessage(Panel* panel, XTime timestamp);
87 virtual void HandlePanelResizeRequest(Panel* panel, 87 virtual void HandlePanelResizeRequest(Panel* panel,
88 int req_width, int req_height); 88 const Size& requested_size);
89 virtual void HandlePanelResizeByUser(Panel* panel) { NOTREACHED(); } 89 virtual void HandlePanelResizeByUser(Panel* panel) { NOTREACHED(); }
90 virtual void HandleScreenResize(); 90 virtual void HandleScreenResize();
91 virtual void HandlePanelUrgencyChange(Panel* panel) {} 91 virtual void HandlePanelUrgencyChange(Panel* panel) {}
92 virtual bool TakeFocus(XTime timestamp); 92 virtual bool TakeFocus(XTime timestamp);
93 // End PanelContainer implementation. 93 // End PanelContainer implementation.
94 94
95 private: 95 private:
96 typedef std::vector<Panel*> Panels; 96 typedef std::vector<Panel*> Panels;
97 97
98 // PanelDock-specific information about a panel. 98 // PanelDock-specific information about a panel.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 161
162 // PanelManager event registrations related to the dock's input windows. 162 // PanelManager event registrations related to the dock's input windows.
163 scoped_ptr<EventConsumerRegistrar> event_consumer_registrar_; 163 scoped_ptr<EventConsumerRegistrar> event_consumer_registrar_;
164 164
165 DISALLOW_COPY_AND_ASSIGN(PanelDock); 165 DISALLOW_COPY_AND_ASSIGN(PanelDock);
166 }; 166 };
167 167
168 } // namespace window_manager 168 } // namespace window_manager
169 169
170 #endif // WINDOW_MANAGER_PANELS_PANEL_DOCK_H_ 170 #endif // WINDOW_MANAGER_PANELS_PANEL_DOCK_H_
OLDNEW
« no previous file with comments | « panels/panel_container.h ('k') | panels/panel_dock.cc » ('j') | window.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698