OLD | NEW |
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 VIEWS_DESKTOP_DESKTOP_WINDOW_ROOT_VIEW_H_ | 5 #ifndef VIEWS_DESKTOP_DESKTOP_WINDOW_ROOT_VIEW_H_ |
6 #define VIEWS_DESKTOP_DESKTOP_WINDOW_ROOT_VIEW_H_ | 6 #define VIEWS_DESKTOP_DESKTOP_WINDOW_ROOT_VIEW_H_ |
7 | 7 |
8 #include "views/widget/root_view.h" | 8 #include "views/widget/root_view.h" |
9 | 9 |
10 namespace views { | 10 namespace views { |
11 namespace desktop { | 11 namespace desktop { |
12 | 12 |
13 class DesktopWindowView; | 13 class DesktopWindowView; |
14 | 14 |
15 class DesktopWindowRootView : public internal::RootView { | 15 class DesktopWindowRootView : public internal::RootView { |
16 public: | 16 public: |
17 DesktopWindowRootView(DesktopWindowView* desktop_window_view, Widget* window); | 17 DesktopWindowRootView(DesktopWindowView* desktop_window_view, Widget* window); |
18 virtual ~DesktopWindowRootView(); | 18 virtual ~DesktopWindowRootView(); |
19 | 19 |
20 private: | 20 private: |
21 // Overridden from RootView: | 21 // Overridden from RootView: |
22 virtual bool OnMousePressed(const MouseEvent& event) OVERRIDE; | 22 virtual bool OnMousePressed(const MouseEvent& event) OVERRIDE; |
| 23 virtual ui::TouchStatus OnTouchEvent(const TouchEvent& event) OVERRIDE; |
| 24 |
| 25 // Activates the widget at the specified location and deactivates the |
| 26 // currently selected widget. |
| 27 void ActivateWidgetAtLocation(const gfx::Point& point); |
23 | 28 |
24 DesktopWindowView* desktop_window_view_; | 29 DesktopWindowView* desktop_window_view_; |
25 | 30 |
26 DISALLOW_COPY_AND_ASSIGN(DesktopWindowRootView); | 31 DISALLOW_COPY_AND_ASSIGN(DesktopWindowRootView); |
27 }; | 32 }; |
28 | 33 |
29 } // namespace desktop | 34 } // namespace desktop |
30 } // namespace views | 35 } // namespace views |
31 | 36 |
32 #endif // VIEWS_DESKTOP_DESKTOP_WINDOW_ROOT_VIEW_H_ | 37 #endif // VIEWS_DESKTOP_DESKTOP_WINDOW_ROOT_VIEW_H_ |
OLD | NEW |