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

Side by Side Diff: views/widget/widget_delegate.h

Issue 7550038: Rename VIEWS_API to VIEWS_EXPORT. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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 | « views/widget/widget.h ('k') | views/window/client_view.h » ('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 VIEWS_WIDGET_WIDGET_DELEGATE_H_ 5 #ifndef VIEWS_WIDGET_WIDGET_DELEGATE_H_
6 #define VIEWS_WIDGET_WIDGET_DELEGATE_H_ 6 #define VIEWS_WIDGET_WIDGET_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "ui/base/accessibility/accessibility_types.h" 12 #include "ui/base/accessibility/accessibility_types.h"
13 #include "views/view.h" 13 #include "views/view.h"
14 14
15 class SkBitmap; 15 class SkBitmap;
16 16
17 namespace gfx { 17 namespace gfx {
18 class Rect; 18 class Rect;
19 } 19 }
20 20
21 namespace views { 21 namespace views {
22 class ClientView; 22 class ClientView;
23 class DialogDelegate; 23 class DialogDelegate;
24 class NonClientFrameView; 24 class NonClientFrameView;
25 class View; 25 class View;
26 class Widget; 26 class Widget;
27 27
28 // WidgetDelegate interface 28 // WidgetDelegate interface
29 // Handles events on Widgets in context-specific ways. 29 // Handles events on Widgets in context-specific ways.
30 class VIEWS_API WidgetDelegate { 30 class VIEWS_EXPORT WidgetDelegate {
31 public: 31 public:
32 WidgetDelegate(); 32 WidgetDelegate();
33 33
34 // Called whenever the widget's position changes. 34 // Called whenever the widget's position changes.
35 virtual void OnWidgetMove(); 35 virtual void OnWidgetMove();
36 36
37 // Called with the display changes (color depth or resolution). 37 // Called with the display changes (color depth or resolution).
38 virtual void OnDisplayChanged(); 38 virtual void OnDisplayChanged();
39 39
40 // Called when the work area (the desktop area minus task bars, 40 // Called when the work area (the desktop area minus task bars,
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 152
153 private: 153 private:
154 View* default_contents_view_; 154 View* default_contents_view_;
155 155
156 DISALLOW_COPY_AND_ASSIGN(WidgetDelegate); 156 DISALLOW_COPY_AND_ASSIGN(WidgetDelegate);
157 }; 157 };
158 158
159 // A WidgetDelegate implementation that is-a View. Used to override GetWidget() 159 // A WidgetDelegate implementation that is-a View. Used to override GetWidget()
160 // to call View's GetWidget() for the common case where a WidgetDelegate 160 // to call View's GetWidget() for the common case where a WidgetDelegate
161 // implementation is-a View. 161 // implementation is-a View.
162 class VIEWS_API WidgetDelegateView : public WidgetDelegate, public View { 162 class VIEWS_EXPORT WidgetDelegateView : public WidgetDelegate, public View {
163 public: 163 public:
164 WidgetDelegateView(); 164 WidgetDelegateView();
165 virtual ~WidgetDelegateView(); 165 virtual ~WidgetDelegateView();
166 166
167 // Overridden from WidgetDelegate: 167 // Overridden from WidgetDelegate:
168 virtual Widget* GetWidget() OVERRIDE; 168 virtual Widget* GetWidget() OVERRIDE;
169 virtual const Widget* GetWidget() const OVERRIDE; 169 virtual const Widget* GetWidget() const OVERRIDE;
170 170
171 private: 171 private:
172 DISALLOW_COPY_AND_ASSIGN(WidgetDelegateView); 172 DISALLOW_COPY_AND_ASSIGN(WidgetDelegateView);
173 }; 173 };
174 174
175 } // namespace views 175 } // namespace views
176 176
177 #endif // VIEWS_WIDGET_WIDGET_DELEGATE_H_ 177 #endif // VIEWS_WIDGET_WIDGET_DELEGATE_H_
178 178
OLDNEW
« no previous file with comments | « views/widget/widget.h ('k') | views/window/client_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698