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

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

Issue 7740039: Don't activate POPUP window (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync 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/widget/native_widget_private.h" 13 #include "views/widget/native_widget_private.h"
14 #include "views/widget/widget.h"
14 15
15 namespace views { 16 namespace views {
16 namespace desktop { 17 namespace desktop {
17 class DesktopWindowView; 18 class DesktopWindowView;
18 } 19 }
19 20
20 namespace internal { 21 namespace internal {
21 class NativeWidgetView; 22 class NativeWidgetView;
22 } 23 }
23 24
(...skipping 12 matching lines...) Expand all
36 const View* GetView() const; 37 const View* GetView() const;
37 38
38 // TODO(oshima): These will be moved to WM API. 39 // TODO(oshima): These will be moved to WM API.
39 void OnActivate(bool active); 40 void OnActivate(bool active);
40 bool OnKeyEvent(const KeyEvent& key_event); 41 bool OnKeyEvent(const KeyEvent& key_event);
41 42
42 void set_delete_native_view(bool delete_native_view) { 43 void set_delete_native_view(bool delete_native_view) {
43 delete_native_view_ = delete_native_view; 44 delete_native_view_ = delete_native_view;
44 } 45 }
45 46
46 internal::NativeWidgetDelegate* delegate() { return delegate_; } 47 internal::NativeWidgetDelegate* delegate() const { return delegate_; }
47 48
48 protected: 49 protected:
49 friend class NativeWidgetView; 50 friend class NativeWidgetView;
50 51
51 // Overridden from internal::NativeWidgetPrivate: 52 // Overridden from internal::NativeWidgetPrivate:
52 virtual void InitNativeWidget(const Widget::InitParams& params) OVERRIDE; 53 virtual void InitNativeWidget(const Widget::InitParams& params) OVERRIDE;
53 virtual NonClientFrameView* CreateNonClientFrameView() OVERRIDE; 54 virtual NonClientFrameView* CreateNonClientFrameView() OVERRIDE;
54 virtual void UpdateFrameAfterFrameChange() OVERRIDE; 55 virtual void UpdateFrameAfterFrameChange() OVERRIDE;
55 virtual bool ShouldUseNativeFrame() const OVERRIDE; 56 virtual bool ShouldUseNativeFrame() const OVERRIDE;
56 virtual void FrameTypeChanged() OVERRIDE; 57 virtual void FrameTypeChanged() OVERRIDE;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 bool delete_native_view_; 163 bool delete_native_view_;
163 164
164 std::map<const char*, void*> window_properties_; 165 std::map<const char*, void*> window_properties_;
165 166
166 DISALLOW_COPY_AND_ASSIGN(NativeWidgetViews); 167 DISALLOW_COPY_AND_ASSIGN(NativeWidgetViews);
167 }; 168 };
168 169
169 } // namespace views 170 } // namespace views
170 171
171 #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