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

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

Issue 7983039: Add support for MouseEnter/MouseExit event types to be sent to aura::Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 | « ui/aura/event.cc ('k') | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include "ui/aura/window.h" 9 #include "ui/aura/window.h"
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 Window* mouse_pressed_handler() { return mouse_pressed_handler_; } 43 Window* mouse_pressed_handler() { return mouse_pressed_handler_; }
44 44
45 // Overridden from Window: 45 // Overridden from Window:
46 virtual FocusManager* GetFocusManager() OVERRIDE; 46 virtual FocusManager* GetFocusManager() OVERRIDE;
47 47
48 protected: 48 protected:
49 // Overridden from Window: 49 // Overridden from Window:
50 virtual internal::RootWindow* GetRoot() OVERRIDE; 50 virtual internal::RootWindow* GetRoot() OVERRIDE;
51 51
52 private: 52 private:
53 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|,
54 // sending exited and entered events as its value changes.
55 void HandleMouseMoved(const MouseEvent& event, Window* target);
56
53 Window* mouse_pressed_handler_; 57 Window* mouse_pressed_handler_;
58 Window* mouse_moved_handler_;
54 scoped_ptr<FocusManager> focus_manager_; 59 scoped_ptr<FocusManager> focus_manager_;
55 Window* capture_window_; 60 Window* capture_window_;
56 61
57 DISALLOW_COPY_AND_ASSIGN(RootWindow); 62 DISALLOW_COPY_AND_ASSIGN(RootWindow);
58 }; 63 };
59 64
60 } // namespace internal 65 } // namespace internal
61 } // namespace aura 66 } // namespace aura
62 67
63 #endif // UI_AURA_ROOT_WINDOW_H_ 68 #endif // UI_AURA_ROOT_WINDOW_H_
OLDNEW
« no previous file with comments | « ui/aura/event.cc ('k') | ui/aura/root_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698