OLD | NEW |
| (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 // A Window subclass that handles event targeting for certain types of | |
15 // MouseEvent. | |
16 class RootWindow : public Window { | |
17 public: | |
18 RootWindow(); | |
19 virtual ~RootWindow(); | |
20 | |
21 // Handles a mouse event. Returns true if handled. | |
22 bool HandleMouseEvent(const MouseEvent& event); | |
23 | |
24 private: | |
25 Window* mouse_pressed_handler_; | |
26 | |
27 DISALLOW_COPY_AND_ASSIGN(RootWindow); | |
28 }; | |
29 | |
30 } // namespace internal | |
31 } // namespace aura | |
32 | |
33 #endif // AURA_ROOT_WINDOW_H_ | |
OLD | NEW |