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

Side by Side Diff: ui/aura/window_delegate.h

Issue 9562038: ui/gfx: Make gfx::Canvas inherit from gfx::CanvasSkia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes Created 8 years, 9 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_AURA_WINDOW_DELEGATE_H_ 5 #ifndef UI_AURA_WINDOW_DELEGATE_H_
6 #define UI_AURA_WINDOW_DELEGATE_H_ 6 #define UI_AURA_WINDOW_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ui/aura/aura_export.h" 9 #include "ui/aura/aura_export.h"
10 #include "ui/base/events.h" 10 #include "ui/base/events.h"
11 #include "ui/gfx/native_widget_types.h" 11 #include "ui/gfx/native_widget_types.h"
12 12
13 namespace gfx { 13 namespace gfx {
14 class Canvas; 14 class CanvasSkia;
15 class Point; 15 class Point;
16 class Rect; 16 class Rect;
17 class Size; 17 class Size;
18 } 18 }
19 19
20 namespace aura { 20 namespace aura {
21 21
22 class Event; 22 class Event;
23 class GestureEvent; 23 class GestureEvent;
24 class KeyEvent; 24 class KeyEvent;
(...skipping 30 matching lines...) Expand all
55 55
56 virtual ui::GestureStatus OnGestureEvent(GestureEvent* event) = 0; 56 virtual ui::GestureStatus OnGestureEvent(GestureEvent* event) = 0;
57 57
58 // Returns true of the window can be focused. 58 // Returns true of the window can be focused.
59 virtual bool CanFocus() = 0; 59 virtual bool CanFocus() = 0;
60 60
61 // Invoked when mouse capture is lost on the window. 61 // Invoked when mouse capture is lost on the window.
62 virtual void OnCaptureLost() = 0; 62 virtual void OnCaptureLost() = 0;
63 63
64 // Asks the delegate to paint window contents into the supplied canvas. 64 // Asks the delegate to paint window contents into the supplied canvas.
65 virtual void OnPaint(gfx::Canvas* canvas) = 0; 65 virtual void OnPaint(gfx::CanvasSkia* canvas) = 0;
66 66
67 // Called from Window's destructor before OnWindowDestroyed and before the 67 // Called from Window's destructor before OnWindowDestroyed and before the
68 // children have been destroyed and the window has been removed from its 68 // children have been destroyed and the window has been removed from its
69 // parent. 69 // parent.
70 virtual void OnWindowDestroying() = 0; 70 virtual void OnWindowDestroying() = 0;
71 71
72 // Called when the Window has been destroyed (i.e. from its destructor). This 72 // Called when the Window has been destroyed (i.e. from its destructor). This
73 // is called after OnWindowDestroying and after the children have been 73 // is called after OnWindowDestroying and after the children have been
74 // deleted and the window has been removed from its parent. 74 // deleted and the window has been removed from its parent.
75 // The delegate can use this as an opportunity to delete itself if necessary. 75 // The delegate can use this as an opportunity to delete itself if necessary.
76 virtual void OnWindowDestroyed() = 0; 76 virtual void OnWindowDestroyed() = 0;
77 77
78 // Called when the visibility of a Window changed. 78 // Called when the visibility of a Window changed.
79 virtual void OnWindowVisibilityChanged(bool visible) = 0; 79 virtual void OnWindowVisibilityChanged(bool visible) = 0;
80 80
81 protected: 81 protected:
82 virtual ~WindowDelegate() {} 82 virtual ~WindowDelegate() {}
83 }; 83 };
84 84
85 } // namespace aura 85 } // namespace aura
86 86
87 #endif // UI_AURA_WINDOW_DELEGATE_H_ 87 #endif // UI_AURA_WINDOW_DELEGATE_H_
OLDNEW
« ash/app_list/app_list_item_view.h ('K') | « ui/aura/window.cc ('k') | ui/gfx/canvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698