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

Side by Side Diff: ui/aura/root_window.h

Issue 22865036: Add support for reposting the ET_GESTURE_TAP_DOWN gesture event to the RootWindow and in the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 3 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 | ui/aura/root_window.cc » ('j') | ui/aura/root_window.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium 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 UI_AURA_ROOT_WINDOW_H_ 5 #ifndef UI_AURA_ROOT_WINDOW_H_
6 #define UI_AURA_ROOT_WINDOW_H_ 6 #define UI_AURA_ROOT_WINDOW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // Shows the root window host. 91 // Shows the root window host.
92 void ShowRootWindow(); 92 void ShowRootWindow();
93 93
94 // Hides the root window host. 94 // Hides the root window host.
95 void HideRootWindow(); 95 void HideRootWindow();
96 96
97 // Stop listening events in preparation for shutdown. 97 // Stop listening events in preparation for shutdown.
98 void PrepareForShutdown(); 98 void PrepareForShutdown();
99 99
100 // Repost event for re-processing. Used when exiting context menus. 100 // Repost event for re-processing. Used when exiting context menus.
101 // We only support the ET_MOUSE_PRESSED and ET_GESTURE_TAP_DOWN event
102 // types.
101 void RepostEvent(const ui::LocatedEvent& event); 103 void RepostEvent(const ui::LocatedEvent& event);
102 104
103 RootWindowHostDelegate* AsRootWindowHostDelegate(); 105 RootWindowHostDelegate* AsRootWindowHostDelegate();
104 106
105 // Gets/sets the size of the host window. 107 // Gets/sets the size of the host window.
106 void SetHostSize(const gfx::Size& size_in_pixel); 108 void SetHostSize(const gfx::Size& size_in_pixel);
107 gfx::Size GetHostSize() const; 109 gfx::Size GetHostSize() const;
108 110
109 // Sets the bounds of the host window. 111 // Sets the bounds of the host window.
110 void SetHostBounds(const gfx::Rect& size_in_pizel); 112 void SetHostBounds(const gfx::Rect& size_in_pizel);
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 // Posts a task to send synthesized mouse move event if there 393 // Posts a task to send synthesized mouse move event if there
392 // is no a pending task. 394 // is no a pending task.
393 void PostMouseMoveEventAfterWindowChange(); 395 void PostMouseMoveEventAfterWindowChange();
394 396
395 // Creates and dispatches synthesized mouse move event using the 397 // Creates and dispatches synthesized mouse move event using the
396 // current mouse location. 398 // current mouse location.
397 void SynthesizeMouseMoveEvent(); 399 void SynthesizeMouseMoveEvent();
398 400
399 gfx::Transform GetInverseRootTransform() const; 401 gfx::Transform GetInverseRootTransform() const;
400 402
403 // Reposts the gesture event to the Window which is a target for the event
404 // passed in.
405 bool DispatchGestureEventRepost(ui::GestureEvent* event);
sadrul 2013/08/23 03:16:03 I would move this up, just below DispatchTouchEven
406
401 scoped_ptr<ui::Compositor> compositor_; 407 scoped_ptr<ui::Compositor> compositor_;
402 408
403 scoped_ptr<RootWindowHost> host_; 409 scoped_ptr<RootWindowHost> host_;
404 410
405 // Used to schedule painting. 411 // Used to schedule painting.
406 base::WeakPtrFactory<RootWindow> schedule_paint_factory_; 412 base::WeakPtrFactory<RootWindow> schedule_paint_factory_;
407 413
408 // Use to post mouse move event. 414 // Use to post mouse move event.
409 base::WeakPtrFactory<RootWindow> event_factory_; 415 base::WeakPtrFactory<RootWindow> event_factory_;
410 416
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 scoped_ptr<ui::ViewProp> prop_; 450 scoped_ptr<ui::ViewProp> prop_;
445 451
446 scoped_ptr<RootWindowTransformer> transformer_; 452 scoped_ptr<RootWindowTransformer> transformer_;
447 453
448 DISALLOW_COPY_AND_ASSIGN(RootWindow); 454 DISALLOW_COPY_AND_ASSIGN(RootWindow);
449 }; 455 };
450 456
451 } // namespace aura 457 } // namespace aura
452 458
453 #endif // UI_AURA_ROOT_WINDOW_H_ 459 #endif // UI_AURA_ROOT_WINDOW_H_
OLDNEW
« no previous file with comments | « no previous file | ui/aura/root_window.cc » ('j') | ui/aura/root_window.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698