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

Side by Side Diff: views/views_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/views_api.h ('k') | views/views_export.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_VIEWS_DELEGATE_H_ 5 #ifndef VIEWS_VIEWS_DELEGATE_H_
6 #define VIEWS_VIEWS_DELEGATE_H_ 6 #define VIEWS_VIEWS_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
11 #include <windows.h> 11 #include <windows.h>
12 #endif 12 #endif
13 13
14 #include "ui/base/accessibility/accessibility_types.h" 14 #include "ui/base/accessibility/accessibility_types.h"
15 #include "views/views_api.h" 15 #include "views/views_export.h"
16 16
17 namespace gfx { 17 namespace gfx {
18 class Rect; 18 class Rect;
19 } 19 }
20 20
21 namespace ui { 21 namespace ui {
22 class Clipboard; 22 class Clipboard;
23 } 23 }
24 24
25 namespace views { 25 namespace views {
26 26
27 class View; 27 class View;
28 class Widget; 28 class Widget;
29 29
30 // ViewsDelegate is an interface implemented by an object using the views 30 // ViewsDelegate is an interface implemented by an object using the views
31 // framework. It is used to obtain various high level application utilities 31 // framework. It is used to obtain various high level application utilities
32 // and perform some actions such as window placement saving. 32 // and perform some actions such as window placement saving.
33 // 33 //
34 // The embedding app must set views_delegate to assign its ViewsDelegate 34 // The embedding app must set views_delegate to assign its ViewsDelegate
35 // implementation. 35 // implementation.
36 class VIEWS_API ViewsDelegate { 36 class VIEWS_EXPORT ViewsDelegate {
37 public: 37 public:
38 virtual ~ViewsDelegate() {} 38 virtual ~ViewsDelegate() {}
39 39
40 // Gets the clipboard. 40 // Gets the clipboard.
41 virtual ui::Clipboard* GetClipboard() const = 0; 41 virtual ui::Clipboard* GetClipboard() const = 0;
42 42
43 // Returns the View that all synthetic widgets created without a specified 43 // Returns the View that all synthetic widgets created without a specified
44 // parent will be parented to if they do not specify a parent in their 44 // parent will be parented to if they do not specify a parent in their
45 // InitParams, or NULL if they should have no parent. 45 // InitParams, or NULL if they should have no parent.
46 // TODO(beng): perhaps this should be a Widget. 46 // TODO(beng): perhaps this should be a Widget.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // Converts views::Event::flags to a WindowOpenDisposition. 88 // Converts views::Event::flags to a WindowOpenDisposition.
89 virtual int GetDispositionForEvent(int event_flags) = 0; 89 virtual int GetDispositionForEvent(int event_flags) = 0;
90 90
91 // The active ViewsDelegate used by the views system. 91 // The active ViewsDelegate used by the views system.
92 static ViewsDelegate* views_delegate; 92 static ViewsDelegate* views_delegate;
93 }; 93 };
94 94
95 } // namespace views 95 } // namespace views
96 96
97 #endif // VIEWS_VIEWS_DELEGATE_H_ 97 #endif // VIEWS_VIEWS_DELEGATE_H_
OLDNEW
« no previous file with comments | « views/views_api.h ('k') | views/views_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698