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

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

Issue 7273084: Change the meaning of "Widget::GetTopLevelWidget()" to mean the logical top level Window in the v... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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_private.h ('k') | views/widget/native_widget_view.cc » ('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_VIEW_H_ 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_VIEW_H_
6 #define VIEWS_WIDGET_NATIVE_WIDGET_VIEW_H_ 6 #define VIEWS_WIDGET_NATIVE_WIDGET_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "views/view.h" 9 #include "views/view.h"
10 #include "views/widget/native_widget_delegate.h" 10 #include "views/widget/native_widget_delegate.h"
(...skipping 18 matching lines...) Expand all
29 // 29 //
30 class NativeWidgetView : public View { 30 class NativeWidgetView : public View {
31 public: 31 public:
32 static const char kViewClassName[]; 32 static const char kViewClassName[];
33 33
34 explicit NativeWidgetView(NativeWidgetViews* native_widget); 34 explicit NativeWidgetView(NativeWidgetViews* native_widget);
35 virtual ~NativeWidgetView(); 35 virtual ~NativeWidgetView();
36 36
37 Widget* GetAssociatedWidget(); 37 Widget* GetAssociatedWidget();
38 38
39 void set_delete_native_widget(bool delete_native_widget) {
40 delete_native_widget_ = delete_native_widget;
41 }
42
39 // Overridden from View: 43 // Overridden from View:
40 virtual void SchedulePaintInternal(const gfx::Rect& r) OVERRIDE; 44 virtual void SchedulePaintInternal(const gfx::Rect& r) OVERRIDE;
41 virtual void MarkLayerDirty() OVERRIDE; 45 virtual void MarkLayerDirty() OVERRIDE;
42 virtual void CalculateOffsetToAncestorWithLayer(gfx::Point* offset, 46 virtual void CalculateOffsetToAncestorWithLayer(gfx::Point* offset,
43 View** ancestor) OVERRIDE; 47 View** ancestor) OVERRIDE;
44 48
45 private: 49 private:
46 // Overridden from View: 50 // Overridden from View:
47 virtual void ViewHierarchyChanged(bool is_add, 51 virtual void ViewHierarchyChanged(bool is_add,
48 View* parent, 52 View* parent,
(...skipping 23 matching lines...) Expand all
72 76
73 internal::NativeWidgetDelegate* delegate() { 77 internal::NativeWidgetDelegate* delegate() {
74 return native_widget_->delegate(); 78 return native_widget_->delegate();
75 } 79 }
76 80
77 NativeWidgetViews* native_widget_; 81 NativeWidgetViews* native_widget_;
78 82
79 // Have we sent OnNativeWidgetCreated? 83 // Have we sent OnNativeWidgetCreated?
80 bool sent_create_; 84 bool sent_create_;
81 85
86 bool delete_native_widget_;
87
82 DISALLOW_COPY_AND_ASSIGN(NativeWidgetView); 88 DISALLOW_COPY_AND_ASSIGN(NativeWidgetView);
83 }; 89 };
84 90
85 } // namespace internal 91 } // namespace internal
86 } // namespace views 92 } // namespace views
87 93
88 #endif // VIEWS_WIDGET_NATIVE_WIDGET_VIEW_H_ 94 #endif // VIEWS_WIDGET_NATIVE_WIDGET_VIEW_H_
OLDNEW
« no previous file with comments | « views/widget/native_widget_private.h ('k') | views/widget/native_widget_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698