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

Side by Side Diff: views/desktop/desktop_window_root_view.h

Issue 7540002: Fix a few issues with touch-events and views-desktop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 | « no previous file | views/desktop/desktop_window_root_view.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 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_
OLDNEW
« no previous file with comments | « no previous file | views/desktop/desktop_window_root_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698