| 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 VIEWS_DESKTOP_DESKTOP_WINDOW_ROOT_VIEW_H_ | |
| 6 #define VIEWS_DESKTOP_DESKTOP_WINDOW_ROOT_VIEW_H_ | |
| 7 | |
| 8 #include "views/widget/root_view.h" | |
| 9 | |
| 10 namespace views { | |
| 11 namespace desktop { | |
| 12 | |
| 13 class DesktopWindowView; | |
| 14 | |
| 15 class DesktopWindowRootView : public internal::RootView { | |
| 16 public: | |
| 17 DesktopWindowRootView(DesktopWindowView* desktop_window_view, Widget* window); | |
| 18 virtual ~DesktopWindowRootView(); | |
| 19 | |
| 20 private: | |
| 21 // Overridden from RootView: | |
| 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); | |
| 28 | |
| 29 DesktopWindowView* desktop_window_view_; | |
| 30 | |
| 31 DISALLOW_COPY_AND_ASSIGN(DesktopWindowRootView); | |
| 32 }; | |
| 33 | |
| 34 } // namespace desktop | |
| 35 } // namespace views | |
| 36 | |
| 37 #endif // VIEWS_DESKTOP_DESKTOP_WINDOW_ROOT_VIEW_H_ | |
| OLD | NEW |