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

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

Issue 11189148: desktop linux aura: Fix event/capture focus after dragging a window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix windows compile. Created 8 years, 2 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') | 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) 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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 virtual void OnLayerAnimationScheduled( 324 virtual void OnLayerAnimationScheduled(
325 ui::LayerAnimationSequence* animation) OVERRIDE; 325 ui::LayerAnimationSequence* animation) OVERRIDE;
326 virtual void OnLayerAnimationAborted( 326 virtual void OnLayerAnimationAborted(
327 ui::LayerAnimationSequence* animation) OVERRIDE; 327 ui::LayerAnimationSequence* animation) OVERRIDE;
328 328
329 // Overridden from aura::RootWindowHostDelegate: 329 // Overridden from aura::RootWindowHostDelegate:
330 virtual bool OnHostKeyEvent(ui::KeyEvent* event) OVERRIDE; 330 virtual bool OnHostKeyEvent(ui::KeyEvent* event) OVERRIDE;
331 virtual bool OnHostMouseEvent(ui::MouseEvent* event) OVERRIDE; 331 virtual bool OnHostMouseEvent(ui::MouseEvent* event) OVERRIDE;
332 virtual bool OnHostScrollEvent(ui::ScrollEvent* event) OVERRIDE; 332 virtual bool OnHostScrollEvent(ui::ScrollEvent* event) OVERRIDE;
333 virtual bool OnHostTouchEvent(ui::TouchEvent* event) OVERRIDE; 333 virtual bool OnHostTouchEvent(ui::TouchEvent* event) OVERRIDE;
334 virtual void OnHostLostCapture() OVERRIDE; 334 virtual void OnHostLostWindowCapture() OVERRIDE;
335 virtual void OnHostLostMouseGrab() OVERRIDE;
335 virtual void OnHostPaint() OVERRIDE; 336 virtual void OnHostPaint() OVERRIDE;
336 virtual void OnHostMoved(const gfx::Point& origin) OVERRIDE; 337 virtual void OnHostMoved(const gfx::Point& origin) OVERRIDE;
337 virtual void OnHostResized(const gfx::Size& size) OVERRIDE; 338 virtual void OnHostResized(const gfx::Size& size) OVERRIDE;
338 virtual float GetDeviceScaleFactor() OVERRIDE; 339 virtual float GetDeviceScaleFactor() OVERRIDE;
339 virtual RootWindow* AsRootWindow() OVERRIDE; 340 virtual RootWindow* AsRootWindow() OVERRIDE;
340 341
341 // We hold and aggregate mouse drags as a way of throttling resizes when 342 // We hold and aggregate mouse drags as a way of throttling resizes when
342 // HoldMouseMoves() is called. The following methods are used to dispatch held 343 // HoldMouseMoves() is called. The following methods are used to dispatch held
343 // and newly incoming mouse events, typically when an event other than a mouse 344 // and newly incoming mouse events, typically when an event other than a mouse
344 // drag needs dispatching or a matching ReleaseMouseMoves() is called. 345 // drag needs dispatching or a matching ReleaseMouseMoves() is called.
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 412
412 CompositorLock* compositor_lock_; 413 CompositorLock* compositor_lock_;
413 bool draw_on_compositor_unlock_; 414 bool draw_on_compositor_unlock_;
414 415
415 DISALLOW_COPY_AND_ASSIGN(RootWindow); 416 DISALLOW_COPY_AND_ASSIGN(RootWindow);
416 }; 417 };
417 418
418 } // namespace aura 419 } // namespace aura
419 420
420 #endif // UI_AURA_ROOT_WINDOW_H_ 421 #endif // UI_AURA_ROOT_WINDOW_H_
OLDNEW
« no previous file with comments | « no previous file | ui/aura/root_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698