blob: 67c74e32f0060823a6459e77dcb1ca4c9117007d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef VIEWS_DESKTOP_DESKTOP_WINDOW_ROOT_VIEW_H_
#define VIEWS_DESKTOP_DESKTOP_WINDOW_ROOT_VIEW_H_
#include "views/widget/root_view.h"
namespace views {
namespace desktop {
class DesktopWindowView;
class DesktopWindowRootView : public internal::RootView {
public:
DesktopWindowRootView(DesktopWindowView* desktop_window_view, Widget* window);
virtual ~DesktopWindowRootView();
private:
// Overridden from RootView:
virtual bool OnMousePressed(const MouseEvent& event) OVERRIDE;
virtual ui::TouchStatus OnTouchEvent(const TouchEvent& event) OVERRIDE;
// Activates the widget at the specified location and deactivates the
// currently selected widget.
void ActivateWidgetAtLocation(const gfx::Point& point);
DesktopWindowView* desktop_window_view_;
DISALLOW_COPY_AND_ASSIGN(DesktopWindowRootView);
};
} // namespace desktop
} // namespace views
#endif // VIEWS_DESKTOP_DESKTOP_WINDOW_ROOT_VIEW_H_
|