| OLD | NEW |
| 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_MANAGER_H_ | 5 #ifndef WINDOW_MANAGER_PANELS_PANEL_MANAGER_H_ |
| 6 #define WINDOW_MANAGER_PANELS_PANEL_MANAGER_H_ | 6 #define WINDOW_MANAGER_PANELS_PANEL_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <tr1/memory> | 10 #include <tr1/memory> |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 | 78 |
| 79 // Handle the removal of a window by removing its panel from its | 79 // Handle the removal of a window by removing its panel from its |
| 80 // container and destroying the Panel object. The window can be either | 80 // container and destroying the Panel object. The window can be either |
| 81 // the panel's content window or its titlebar. Does nothing when passed | 81 // the panel's content window or its titlebar. Does nothing when passed |
| 82 // non-panel windows. | 82 // non-panel windows. |
| 83 virtual void HandleWindowUnmap(Window* win); | 83 virtual void HandleWindowUnmap(Window* win); |
| 84 | 84 |
| 85 virtual void HandleWindowPixmapFetch(Window* win) {} | 85 virtual void HandleWindowPixmapFetch(Window* win) {} |
| 86 | 86 |
| 87 virtual void HandleWindowConfigureRequest(Window* win, | 87 virtual void HandleWindowConfigureRequest(Window* win, |
| 88 int req_x, int req_y, | 88 const Rect& requested_bounds); |
| 89 int req_width, int req_height); | |
| 90 | 89 |
| 91 // Handle events for windows. If the event occurred in an input window, | 90 // Handle events for windows. If the event occurred in an input window, |
| 92 // it is passed through to the Panel or PanelContainer that owns the | 91 // it is passed through to the Panel or PanelContainer that owns the |
| 93 // input window. If a button press occurs in a panel's content or | 92 // input window. If a button press occurs in a panel's content or |
| 94 // titlebar window, it just passed directly to the PanelContainer that | 93 // titlebar window, it just passed directly to the PanelContainer that |
| 95 // currently contains the panel via | 94 // currently contains the panel via |
| 96 // PanelContainer::HandlePanelButtonPress(). | 95 // PanelContainer::HandlePanelButtonPress(). |
| 97 virtual void HandleButtonPress(XWindow xid, | 96 virtual void HandleButtonPress(XWindow xid, |
| 98 int x, int y, | 97 const Point& relative_pos, |
| 99 int x_root, int y_root, | 98 const Point& absolute_pos, |
| 100 int button, | 99 int button, |
| 101 XTime timestamp); | 100 XTime timestamp); |
| 102 virtual void HandleButtonRelease(XWindow xid, | 101 virtual void HandleButtonRelease(XWindow xid, |
| 103 int x, int y, | 102 const Point& relative_pos, |
| 104 int x_root, int y_root, | 103 const Point& absolute_pos, |
| 105 int button, | 104 int button, |
| 106 XTime timestamp); | 105 XTime timestamp); |
| 107 virtual void HandlePointerEnter(XWindow xid, | 106 virtual void HandlePointerEnter(XWindow xid, |
| 108 int x, int y, | 107 const Point& relative_pos, |
| 109 int x_root, int y_root, | 108 const Point& absolute_pos, |
| 110 XTime timestamp); | 109 XTime timestamp); |
| 111 virtual void HandlePointerLeave(XWindow xid, | 110 virtual void HandlePointerLeave(XWindow xid, |
| 112 int x, int y, | 111 const Point& relative_pos, |
| 113 int x_root, int y_root, | 112 const Point& absolute_pos, |
| 114 XTime timestamp); | 113 XTime timestamp); |
| 115 virtual void HandlePointerMotion(XWindow xid, | 114 virtual void HandlePointerMotion(XWindow xid, |
| 116 int x, int y, | 115 const Point& relative_pos, |
| 117 int x_root, int y_root, | 116 const Point& absolute_pos, |
| 118 XTime timestamp); | 117 XTime timestamp); |
| 119 | 118 |
| 120 virtual void HandleChromeMessage(const WmIpc::Message& msg); | 119 virtual void HandleChromeMessage(const WmIpc::Message& msg); |
| 121 virtual void HandleClientMessage(XWindow xid, | 120 virtual void HandleClientMessage(XWindow xid, |
| 122 XAtom message_type, | 121 XAtom message_type, |
| 123 const long data[5]); | 122 const long data[5]); |
| 124 virtual void HandleWindowPropertyChange(XWindow xid, XAtom xatom); | 123 virtual void HandleWindowPropertyChange(XWindow xid, XAtom xatom); |
| 125 virtual void OwnDestroyedWindow(DestroyedWindow* destroyed_win, XWindow xid) { | 124 virtual void OwnDestroyedWindow(DestroyedWindow* destroyed_win, XWindow xid) { |
| 126 NOTREACHED(); | 125 NOTREACHED(); |
| 127 } | 126 } |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 | 270 |
| 272 // Map from transient windows' IDs to the panels that own them. | 271 // Map from transient windows' IDs to the panels that own them. |
| 273 std::map<XWindow, Panel*> transient_xids_to_owners_; | 272 std::map<XWindow, Panel*> transient_xids_to_owners_; |
| 274 | 273 |
| 275 DISALLOW_COPY_AND_ASSIGN(PanelManager); | 274 DISALLOW_COPY_AND_ASSIGN(PanelManager); |
| 276 }; | 275 }; |
| 277 | 276 |
| 278 } // namespace window_manager | 277 } // namespace window_manager |
| 279 | 278 |
| 280 #endif // WINDOW_MANAGER_PANELS_PANEL_MANAGER_H_ | 279 #endif // WINDOW_MANAGER_PANELS_PANEL_MANAGER_H_ |
| OLD | NEW |