summaryrefslogtreecommitdiffstats
path: root/aura/root_window.h
blob: e2f02fd923abf758e28ac9fdcb27aaac55ca233d (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
// 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 AURA_ROOT_WINDOW_H_
#define AURA_ROOT_WINDOW_H_
#pragma once

#include "aura/window.h"

namespace aura {
namespace internal {

// A Window subclass that handles event targeting for certain types of
// MouseEvent.
class RootWindow : public Window {
 public:
  RootWindow();
  virtual ~RootWindow();

  // Handles a mouse event. Returns true if handled.
  bool HandleMouseEvent(const MouseEvent& event);

 private:
  Window* mouse_pressed_handler_;

  DISALLOW_COPY_AND_ASSIGN(RootWindow);
};

}  // namespace internal
}  // namespace aura

#endif  // AURA_ROOT_WINDOW_H_