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

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

Issue 7585028: NativeWidgetViews: Implement widget activation/deactivation. (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
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_VIEWS_H_ 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_
6 #define VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_ 6 #define VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 10
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "ui/gfx/transform.h" 12 #include "ui/gfx/transform.h"
13 #include "views/ime/input_method_delegate.h" 13 #include "views/ime/input_method_delegate.h"
14 #include "views/widget/native_widget_private.h" 14 #include "views/widget/native_widget_private.h"
15 15
16 namespace views { 16 namespace views {
17 namespace desktop {
18 class DesktopWindowView;
19 }
20
17 namespace internal { 21 namespace internal {
18 class NativeWidgetView; 22 class NativeWidgetView;
19 } 23 }
20 24
21 //////////////////////////////////////////////////////////////////////////////// 25 ////////////////////////////////////////////////////////////////////////////////
22 // NativeWidgetViews 26 // NativeWidgetViews
23 // 27 //
24 // A NativeWidget implementation that uses another View as its native widget. 28 // A NativeWidget implementation that uses another View as its native widget.
25 // 29 //
26 class VIEWS_API NativeWidgetViews : public internal::NativeWidgetPrivate, 30 class VIEWS_API NativeWidgetViews : public internal::NativeWidgetPrivate,
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 int operation) OVERRIDE; 125 int operation) OVERRIDE;
122 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE; 126 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE;
123 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; 127 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE;
124 virtual void ClearNativeFocus() OVERRIDE; 128 virtual void ClearNativeFocus() OVERRIDE;
125 virtual void FocusNativeView(gfx::NativeView native_view) OVERRIDE; 129 virtual void FocusNativeView(gfx::NativeView native_view) OVERRIDE;
126 130
127 // Overridden from internal::InputMethodDelegate 131 // Overridden from internal::InputMethodDelegate
128 virtual void DispatchKeyEventPostIME(const KeyEvent& key) OVERRIDE; 132 virtual void DispatchKeyEventPostIME(const KeyEvent& key) OVERRIDE;
129 133
130 private: 134 private:
135 friend class desktop::DesktopWindowView;
136
131 // These functions may return NULL during Widget destruction. 137 // These functions may return NULL during Widget destruction.
132 internal::NativeWidgetPrivate* GetParentNativeWidget(); 138 internal::NativeWidgetPrivate* GetParentNativeWidget();
133 const internal::NativeWidgetPrivate* GetParentNativeWidget() const; 139 const internal::NativeWidgetPrivate* GetParentNativeWidget() const;
134 140
135 internal::NativeWidgetDelegate* delegate_; 141 internal::NativeWidgetDelegate* delegate_;
136 142
137 internal::NativeWidgetView* view_; 143 internal::NativeWidgetView* view_;
138 144
139 bool active_; 145 bool active_;
140 146
(...skipping 16 matching lines...) Expand all
157 scoped_ptr<InputMethod> input_method_; 163 scoped_ptr<InputMethod> input_method_;
158 164
159 std::map<const char*, void*> window_properties_; 165 std::map<const char*, void*> window_properties_;
160 166
161 DISALLOW_COPY_AND_ASSIGN(NativeWidgetViews); 167 DISALLOW_COPY_AND_ASSIGN(NativeWidgetViews);
162 }; 168 };
163 169
164 } // namespace views 170 } // namespace views
165 171
166 #endif // VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_ 172 #endif // VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698