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

Side by Side Diff: panels/panel_bar.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
« no previous file with comments | « panels/panel.cc ('k') | panels/panel_bar.cc » ('j') | window.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_BAR_H_ 5 #ifndef WINDOW_MANAGER_PANELS_PANEL_BAR_H_
6 #define WINDOW_MANAGER_PANELS_PANEL_BAR_H_ 6 #define WINDOW_MANAGER_PANELS_PANEL_BAR_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <tr1/memory> 10 #include <tr1/memory>
(...skipping 23 matching lines...) Expand all
34 public: 34 public:
35 explicit PanelBar(PanelManager* panel_manager); 35 explicit PanelBar(PanelManager* panel_manager);
36 ~PanelBar(); 36 ~PanelBar();
37 37
38 WindowManager* wm(); 38 WindowManager* wm();
39 39
40 // Begin PanelContainer implementation. 40 // Begin PanelContainer implementation.
41 virtual void GetInputWindows(std::vector<XWindow>* windows_out); 41 virtual void GetInputWindows(std::vector<XWindow>* windows_out);
42 virtual void AddPanel(Panel* panel, PanelSource source); 42 virtual void AddPanel(Panel* panel, PanelSource source);
43 virtual void RemovePanel(Panel* panel); 43 virtual void RemovePanel(Panel* panel);
44 virtual bool ShouldAddDraggedPanel(const Panel* panel, 44 virtual bool ShouldAddDraggedPanel(const Panel* panel, const Point& drag_pos);
45 int drag_x, int drag_y);
46 virtual void HandleInputWindowButtonPress(XWindow xid, 45 virtual void HandleInputWindowButtonPress(XWindow xid,
47 int x, int y, 46 const Point& relative_pos,
48 int x_root, int y_root, 47 const Point& absolute_pos,
49 int button, 48 int button,
50 XTime timestamp); 49 XTime timestamp);
51 virtual void HandleInputWindowButtonRelease(XWindow xid, 50 virtual void HandleInputWindowButtonRelease(XWindow xid,
52 int x, int y, 51 const Point& relative_pos,
53 int x_root, int y_root, 52 const Point& absolute_pos,
54 int button, 53 int button,
55 XTime timestamp) {} 54 XTime timestamp) {}
56 virtual void HandleInputWindowPointerEnter(XWindow xid, 55 virtual void HandleInputWindowPointerEnter(XWindow xid,
57 int x, int y, 56 const Point& relative_pos,
58 int x_root, int y_root, 57 const Point& absolute_pos,
59 XTime timestamp); 58 XTime timestamp);
60 virtual void HandleInputWindowPointerLeave(XWindow xid, 59 virtual void HandleInputWindowPointerLeave(XWindow xid,
61 int x, int y, 60 const Point& relative_pos,
62 int x_root, int y_root, 61 const Point& absolute_pos,
63 XTime timestamp); 62 XTime timestamp);
64 virtual void HandlePanelButtonPress(Panel* panel, 63 virtual void HandlePanelButtonPress(Panel* panel,
65 int button, 64 int button,
66 XTime timestamp); 65 XTime timestamp);
67 virtual void HandlePanelTitlebarPointerEnter(Panel* panel, XTime timestamp); 66 virtual void HandlePanelTitlebarPointerEnter(Panel* panel, XTime timestamp);
68 virtual void HandleSetPanelStateMessage(Panel* panel, bool expand); 67 virtual void HandleSetPanelStateMessage(Panel* panel, bool expand);
69 virtual bool HandleNotifyPanelDraggedMessage(Panel* panel, 68 virtual bool HandleNotifyPanelDraggedMessage(Panel* panel,
70 int drag_x, int drag_y); 69 const Point& drag_pos);
71 virtual void HandleNotifyPanelDragCompleteMessage(Panel* panel); 70 virtual void HandleNotifyPanelDragCompleteMessage(Panel* panel);
72 virtual void HandleFocusPanelMessage(Panel* panel, XTime timestamp); 71 virtual void HandleFocusPanelMessage(Panel* panel, XTime timestamp);
73 virtual void HandlePanelResizeRequest(Panel* panel, 72 virtual void HandlePanelResizeRequest(Panel* panel,
74 int req_width, int req_height); 73 const Size& requested_size);
75 virtual void HandlePanelResizeByUser(Panel* panel); 74 virtual void HandlePanelResizeByUser(Panel* panel);
76 virtual void HandleScreenResize(); 75 virtual void HandleScreenResize();
77 virtual void HandlePanelUrgencyChange(Panel* panel); 76 virtual void HandlePanelUrgencyChange(Panel* panel);
78 virtual bool TakeFocus(XTime timestamp); 77 virtual bool TakeFocus(XTime timestamp);
79 // End PanelContainer implementation. 78 // End PanelContainer implementation.
80 79
81 // Number of pixels between the rightmost panel and the right edge of the 80 // Number of pixels between the rightmost panel and the right edge of the
82 // screen, in pixels. 81 // screen, in pixels.
83 static const int kRightPaddingPixels; 82 static const int kRightPaddingPixels;
84 83
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 // PanelManager event registrations related to the panel bar's input 334 // PanelManager event registrations related to the panel bar's input
336 // windows. 335 // windows.
337 scoped_ptr<EventConsumerRegistrar> event_consumer_registrar_; 336 scoped_ptr<EventConsumerRegistrar> event_consumer_registrar_;
338 337
339 DISALLOW_COPY_AND_ASSIGN(PanelBar); 338 DISALLOW_COPY_AND_ASSIGN(PanelBar);
340 }; 339 };
341 340
342 } // namespace window_manager 341 } // namespace window_manager
343 342
344 #endif // WINDOW_MANAGER_PANELS_PANEL_BAR_H_ 343 #endif // WINDOW_MANAGER_PANELS_PANEL_BAR_H_
OLDNEW
« no previous file with comments | « panels/panel.cc ('k') | panels/panel_bar.cc » ('j') | window.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698