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

Side by Side Diff: aura/root_window.h

Issue 7886042: Move Aura to UI subdir. (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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef AURA_ROOT_WINDOW_H_
6 #define AURA_ROOT_WINDOW_H_
7 #pragma once
8
9 #include "aura/window.h"
10
11 namespace aura {
12 namespace internal {
13
14 class FocusManager;
15
16 // A Window subclass that handles event targeting for certain types of
17 // MouseEvent.
18 class RootWindow : public Window {
19 public:
20 RootWindow();
21 virtual ~RootWindow();
22
23 // Handles a mouse event. Returns true if handled.
24 bool HandleMouseEvent(const MouseEvent& event);
25
26 // Handles a key event. Returns true if handled.
27 bool HandleKeyEvent(const KeyEvent& event);
28
29 // Overridden from Window:
30 virtual bool IsTopLevelWindowContainer() const OVERRIDE;
31 virtual FocusManager* GetFocusManager() OVERRIDE;
32
33 private:
34 Window* mouse_pressed_handler_;
35 scoped_ptr<FocusManager> focus_manager_;
36
37 DISALLOW_COPY_AND_ASSIGN(RootWindow);
38 };
39
40 } // namespace internal
41 } // namespace aura
42
43 #endif // AURA_ROOT_WINDOW_H_
OLDNEW
« no previous file with comments | « aura/hit_test.h ('k') | aura/root_window.cc » ('j') | ui/aura/aura.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698