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

Side by Side Diff: views/widget/native_widget_win.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/native_widget_views.h ('k') | views/widget/root_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_NATIVE_WIDGET_WIN_H_ 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_
6 #define VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ 6 #define VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include <atlbase.h> 9 #include <atlbase.h>
10 #include <atlapp.h> 10 #include <atlapp.h>
(...skipping 30 matching lines...) Expand all
41 class DropTargetWin; 41 class DropTargetWin;
42 class RootView; 42 class RootView;
43 class TooltipManagerWin; 43 class TooltipManagerWin;
44 44
45 namespace internal { 45 namespace internal {
46 class NativeWidgetDelegate; 46 class NativeWidgetDelegate;
47 47
48 // This is exposed only for testing 48 // This is exposed only for testing
49 // Adjusts the value of |child_rect| if necessary to ensure that it is 49 // Adjusts the value of |child_rect| if necessary to ensure that it is
50 // completely visible within |parent_rect|. 50 // completely visible within |parent_rect|.
51 VIEWS_API void EnsureRectIsVisibleInRect(const gfx::Rect& parent_rect, 51 VIEWS_EXPORT void EnsureRectIsVisibleInRect(const gfx::Rect& parent_rect,
52 gfx::Rect* child_rect, 52 gfx::Rect* child_rect,
53 int padding); 53 int padding);
54 } // namespace internal 54 } // namespace internal
55 55
56 // A Windows message reflected from other windows. This message is sent 56 // A Windows message reflected from other windows. This message is sent
57 // with the following arguments: 57 // with the following arguments:
58 // hWnd - Target window 58 // hWnd - Target window
59 // uMsg - kReflectedMessage 59 // uMsg - kReflectedMessage
60 // wParam - Should be 0 60 // wParam - Should be 0
61 // lParam - Pointer to MSG struct containing the original message. 61 // lParam - Pointer to MSG struct containing the original message.
62 const int kReflectedMessage = WM_APP + 3; 62 const int kReflectedMessage = WM_APP + 3;
63 63
(...skipping 14 matching lines...) Expand all
78 // A Widget for a views hierarchy used to represent anything that can be 78 // A Widget for a views hierarchy used to represent anything that can be
79 // contained within an HWND, e.g. a control, a window, etc. Specializations 79 // contained within an HWND, e.g. a control, a window, etc. Specializations
80 // suitable for specific tasks, e.g. top level window, are derived from this. 80 // suitable for specific tasks, e.g. top level window, are derived from this.
81 // 81 //
82 // This Widget contains a RootView which owns the hierarchy of views within it. 82 // This Widget contains a RootView which owns the hierarchy of views within it.
83 // As long as views are part of this tree, they will be deleted automatically 83 // As long as views are part of this tree, they will be deleted automatically
84 // when the RootView is destroyed. If you remove a view from the tree, you are 84 // when the RootView is destroyed. If you remove a view from the tree, you are
85 // then responsible for cleaning up after it. 85 // then responsible for cleaning up after it.
86 // 86 //
87 /////////////////////////////////////////////////////////////////////////////// 87 ///////////////////////////////////////////////////////////////////////////////
88 class VIEWS_API NativeWidgetWin : public ui::WindowImpl, 88 class VIEWS_EXPORT NativeWidgetWin : public ui::WindowImpl,
89 public internal::NativeWidgetPrivate, 89 public internal::NativeWidgetPrivate,
90 public MessageLoopForUI::Observer, 90 public MessageLoopForUI::Observer,
91 public internal::InputMethodDelegate { 91 public internal::InputMethodDelegate {
92 public: 92 public:
93 explicit NativeWidgetWin(internal::NativeWidgetDelegate* delegate); 93 explicit NativeWidgetWin(internal::NativeWidgetDelegate* delegate);
94 virtual ~NativeWidgetWin(); 94 virtual ~NativeWidgetWin();
95 95
96 // Returns true if we are on Windows Vista or greater and composition is 96 // Returns true if we are on Windows Vista or greater and composition is
97 // enabled. 97 // enabled.
98 static bool IsAeroGlassEnabled(); 98 static bool IsAeroGlassEnabled();
99 99
100 // Returns the system set window title font. 100 // Returns the system set window title font.
101 static gfx::Font GetWindowTitleFont(); 101 static gfx::Font GetWindowTitleFont();
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 656
657 // The compositor for accelerated drawing. 657 // The compositor for accelerated drawing.
658 scoped_refptr<ui::Compositor> compositor_; 658 scoped_refptr<ui::Compositor> compositor_;
659 659
660 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); 660 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin);
661 }; 661 };
662 662
663 } // namespace views 663 } // namespace views
664 664
665 #endif // VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ 665 #endif // VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_
OLDNEW
« no previous file with comments | « views/widget/native_widget_views.h ('k') | views/widget/root_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698