diff options
Diffstat (limited to 'aura/root_window.h')
-rw-r--r-- | aura/root_window.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/aura/root_window.h b/aura/root_window.h new file mode 100644 index 0000000..e2f02fd --- /dev/null +++ b/aura/root_window.h @@ -0,0 +1,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_ |