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

Side by Side Diff: chrome_watchdog.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 | « no previous file | chrome_watchdog_test.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_CHROME_WATCHDOG_H_ 5 #ifndef WINDOW_MANAGER_CHROME_WATCHDOG_H_
6 #define WINDOW_MANAGER_CHROME_WATCHDOG_H_ 6 #define WINDOW_MANAGER_CHROME_WATCHDOG_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include <sys/types.h> 10 #include <sys/types.h>
(...skipping 19 matching lines...) Expand all
30 30
31 // Begin EventConsumer implementation. 31 // Begin EventConsumer implementation.
32 virtual bool IsInputWindow(XWindow xid) { return false; } 32 virtual bool IsInputWindow(XWindow xid) { return false; }
33 virtual void HandleScreenResize() {} 33 virtual void HandleScreenResize() {}
34 virtual void HandleLoggedInStateChange() {} 34 virtual void HandleLoggedInStateChange() {}
35 virtual bool HandleWindowMapRequest(Window* win) { return false; } 35 virtual bool HandleWindowMapRequest(Window* win) { return false; }
36 virtual void HandleWindowMap(Window* win); 36 virtual void HandleWindowMap(Window* win);
37 virtual void HandleWindowUnmap(Window* win); 37 virtual void HandleWindowUnmap(Window* win);
38 virtual void HandleWindowPixmapFetch(Window* win) {} 38 virtual void HandleWindowPixmapFetch(Window* win) {}
39 virtual void HandleWindowConfigureRequest(Window* win, 39 virtual void HandleWindowConfigureRequest(Window* win,
40 int req_x, int req_y, 40 const Rect& requested_bounds) {}
41 int req_width, int req_height) {}
42 virtual void HandleButtonPress(XWindow xid, 41 virtual void HandleButtonPress(XWindow xid,
43 int x, int y, 42 const Point& relative_pos,
44 int x_root, int y_root, 43 const Point& absolute_pos,
45 int button, 44 int button,
46 XTime timestamp) {} 45 XTime timestamp) {}
47 virtual void HandleButtonRelease(XWindow xid, 46 virtual void HandleButtonRelease(XWindow xid,
48 int x, int y, 47 const Point& relative_pos,
49 int x_root, int y_root, 48 const Point& absolute_pos,
50 int button, 49 int button,
51 XTime timestamp) {} 50 XTime timestamp) {}
52 virtual void HandlePointerEnter(XWindow xid, 51 virtual void HandlePointerEnter(XWindow xid,
53 int x, int y, 52 const Point& relative_pos,
54 int x_root, int y_root, 53 const Point& absolute_pos,
55 XTime timestamp) {} 54 XTime timestamp) {}
56 virtual void HandlePointerLeave(XWindow xid, 55 virtual void HandlePointerLeave(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 HandlePointerMotion(XWindow xid, 59 virtual void HandlePointerMotion(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 HandleChromeMessage(const WmIpc::Message& msg) {} 63 virtual void HandleChromeMessage(const WmIpc::Message& msg) {}
65 virtual void HandleClientMessage(XWindow xid, 64 virtual void HandleClientMessage(XWindow xid,
66 XAtom message_type, 65 XAtom message_type,
67 const long data[5]); 66 const long data[5]);
68 virtual void HandleWindowPropertyChange(XWindow xid, XAtom xatom) {} 67 virtual void HandleWindowPropertyChange(XWindow xid, XAtom xatom) {}
69 virtual void OwnDestroyedWindow(DestroyedWindow* destroyed_win, XWindow xid) { 68 virtual void OwnDestroyedWindow(DestroyedWindow* destroyed_win, XWindow xid) {
70 NOTREACHED(); 69 NOTREACHED();
71 } 70 }
72 // End EventConsumer implementation. 71 // End EventConsumer implementation.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // PID of the last process that we killed, or -1 if we've never killed a 116 // PID of the last process that we killed, or -1 if we've never killed a
118 // process. Used for testing. 117 // process. Used for testing.
119 pid_t last_killed_pid_; 118 pid_t last_killed_pid_;
120 119
121 DISALLOW_COPY_AND_ASSIGN(ChromeWatchdog); 120 DISALLOW_COPY_AND_ASSIGN(ChromeWatchdog);
122 }; 121 };
123 122
124 } // namespace window_manager 123 } // namespace window_manager
125 124
126 #endif // WINDOW_MANAGER_CHROME_WATCHDOG_H_ 125 #endif // WINDOW_MANAGER_CHROME_WATCHDOG_H_
OLDNEW
« no previous file with comments | « no previous file | chrome_watchdog_test.cc » ('j') | window.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698