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

Side by Side Diff: aura/window_delegate.h

Issue 7739002: Revert 98850 - Proper MouseEvent targeting. Adds a Window method that locates a Window for a give... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 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 | « aura/window.cc ('k') | aura/window_unittest.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 AURA_WINDOW_DELEGATE_H_ 5 #ifndef AURA_WINDOW_DELEGATE_H_
6 #define AURA_WINDOW_DELEGATE_H_ 6 #define AURA_WINDOW_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 namespace gfx { 9 namespace gfx {
10 class Canvas; 10 class Canvas;
11 } 11 }
12 12
13 namespace aura { 13 namespace aura {
14 14
15 class MouseEvent;
16
17 // Delegate interface for aura::Window. 15 // Delegate interface for aura::Window.
18 class WindowDelegate { 16 class WindowDelegate {
19 public: 17 public:
20 virtual bool OnMouseEvent(const MouseEvent& event) = 0;
21
22 // Asks the delegate to paint window contents into the supplied canvas. 18 // Asks the delegate to paint window contents into the supplied canvas.
23 virtual void OnPaint(gfx::Canvas* canvas) = 0; 19 virtual void OnPaint(gfx::Canvas* canvas) = 0;
24
25 // Called when the Window has been destroyed (i.e. from its destructor).
26 // The delegate can use this as an opportunity to delete itself if necessary.
27 virtual void OnWindowDestroyed() = 0;
28 20
29 protected: 21 protected:
30 virtual ~WindowDelegate() {} 22 virtual ~WindowDelegate() {}
31 }; 23 };
32 24
33 } // namespace aura 25 } // namespace aura
34 26
35 #endif // AURA_WINDOW_DELEGATE_H_ 27 #endif // AURA_WINDOW_DELEGATE_H_
OLDNEW
« no previous file with comments | « aura/window.cc ('k') | aura/window_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698