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

Side by Side Diff: src/platform/window_manager/mock_chrome.h

Issue 527005: wm: Make WM_MOVE_PANEL use top-right coordinates. (Closed)
Patch Set: fix a poorly-worded sentence Created 10 years, 11 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
« no previous file with comments | « no previous file | src/platform/window_manager/mock_chrome.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2009 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_MOCK_CHROME_H_ 5 #ifndef WINDOW_MANAGER_MOCK_CHROME_H_
6 #define WINDOW_MANAGER_MOCK_CHROME_H_ 6 #define WINDOW_MANAGER_MOCK_CHROME_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 #include <tr1/memory> 10 #include <tr1/memory>
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 bool on_button_press_event(GdkEventButton* event); 286 bool on_button_press_event(GdkEventButton* event);
287 bool on_button_release_event(GdkEventButton* event); 287 bool on_button_release_event(GdkEventButton* event);
288 bool on_motion_notify_event(GdkEventMotion* event); 288 bool on_motion_notify_event(GdkEventMotion* event);
289 289
290 Panel* panel_; // not owned 290 Panel* panel_; // not owned
291 XWindow xid_; 291 XWindow xid_;
292 292
293 // Is the mouse button currently down? 293 // Is the mouse button currently down?
294 bool mouse_down_; 294 bool mouse_down_;
295 295
296 // Cursor's absolute position when the mouse button was pressed. 296 // Pointer's absolute position when the mouse button was pressed.
297 int mouse_down_abs_x_; 297 int mouse_down_abs_x_;
298 int mouse_down_abs_y_; 298 int mouse_down_abs_y_;
299 299
300 // Cursor's offset from the upper-left corner of the titlebar when the 300 // Pointer's offset from the upper-right corner of the titlebar when the
301 // mouse button was pressed. 301 // mouse button was pressed.
302 int mouse_down_offset_x_; 302 int mouse_down_offset_x_;
303 int mouse_down_offset_y_; 303 int mouse_down_offset_y_;
304 304
305 // Is the titlebar currently being dragged? That is, has the cursor 305 // Is the titlebar currently being dragged? That is, has the cursor
306 // moved more than kDragThreshold away from its starting position? 306 // moved more than kDragThreshold away from its starting position?
307 bool dragging_; 307 bool dragging_;
308 308
309 // Is this panel focused? We draw ourselves differently if it is. 309 // Is this panel focused? We draw ourselves differently if it is.
310 bool focused_; 310 bool focused_;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 390
391 // The window currently under the floating tab. 391 // The window currently under the floating tab.
392 ChromeWindow* window_under_floating_tab_; 392 ChromeWindow* window_under_floating_tab_;
393 393
394 DISALLOW_COPY_AND_ASSIGN(MockChrome); 394 DISALLOW_COPY_AND_ASSIGN(MockChrome);
395 }; 395 };
396 396
397 } // namespace mock_chrome 397 } // namespace mock_chrome
398 398
399 #endif // WINDOW_MANAGER_MOCK_CHROME_H_ 399 #endif // WINDOW_MANAGER_MOCK_CHROME_H_
OLDNEW
« no previous file with comments | « no previous file | src/platform/window_manager/mock_chrome.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698