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

Side by Side Diff: views/widget/widget.cc

Issue 7930014: views: Make mouse state member variables private to Widget. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make the other variables private too. Created 9 years, 3 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/widget.h ('k') | no next file » | 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 #include "views/widget/widget.h" 5 #include "views/widget/widget.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "ui/base/l10n/l10n_font_util.h" 10 #include "ui/base/l10n/l10n_font_util.h"
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 parent(NULL), 139 parent(NULL),
140 parent_widget(NULL), 140 parent_widget(NULL),
141 native_widget(NULL), 141 native_widget(NULL),
142 top_level(false) { 142 top_level(false) {
143 } 143 }
144 144
145 //////////////////////////////////////////////////////////////////////////////// 145 ////////////////////////////////////////////////////////////////////////////////
146 // Widget, public: 146 // Widget, public:
147 147
148 Widget::Widget() 148 Widget::Widget()
149 : is_mouse_button_pressed_(false), 149 : native_widget_(NULL),
150 last_mouse_event_was_move_(false),
151 native_widget_(NULL),
152 widget_delegate_(NULL), 150 widget_delegate_(NULL),
153 non_client_view_(NULL), 151 non_client_view_(NULL),
154 dragged_view_(NULL), 152 dragged_view_(NULL),
155 event_stack_(), 153 event_stack_(),
156 ownership_(InitParams::NATIVE_WIDGET_OWNS_WIDGET), 154 ownership_(InitParams::NATIVE_WIDGET_OWNS_WIDGET),
157 is_secondary_widget_(true), 155 is_secondary_widget_(true),
158 frame_type_(FRAME_TYPE_DEFAULT), 156 frame_type_(FRAME_TYPE_DEFAULT),
159 disable_inactive_rendering_(false), 157 disable_inactive_rendering_(false),
160 widget_closed_(false), 158 widget_closed_(false),
161 saved_show_state_(ui::SHOW_STATE_DEFAULT), 159 saved_show_state_(ui::SHOW_STATE_DEFAULT),
162 minimum_size_(100, 100), 160 minimum_size_(100, 100),
163 focus_on_creation_(true), 161 focus_on_creation_(true),
164 is_top_level_(false), 162 is_top_level_(false),
165 native_widget_initialized_(false) { 163 native_widget_initialized_(false),
164 is_mouse_button_pressed_(false),
165 last_mouse_event_was_move_(false) {
166 } 166 }
167 167
168 Widget::~Widget() { 168 Widget::~Widget() {
169 while (!event_stack_.empty()) { 169 while (!event_stack_.empty()) {
170 event_stack_.top()->reset(); 170 event_stack_.top()->reset();
171 event_stack_.pop(); 171 event_stack_.pop();
172 } 172 }
173 173
174 DestroyRootView(); 174 DestroyRootView();
175 if (ownership_ == InitParams::WIDGET_OWNS_NATIVE_WIDGET) 175 if (ownership_ == InitParams::WIDGET_OWNS_NATIVE_WIDGET)
(...skipping 987 matching lines...) Expand 10 before | Expand all | Expand 10 after
1163 1163
1164 //////////////////////////////////////////////////////////////////////////////// 1164 ////////////////////////////////////////////////////////////////////////////////
1165 // internal::NativeWidgetPrivate, NativeWidget implementation: 1165 // internal::NativeWidgetPrivate, NativeWidget implementation:
1166 1166
1167 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { 1167 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() {
1168 return this; 1168 return this;
1169 } 1169 }
1170 1170
1171 } // namespace internal 1171 } // namespace internal
1172 } // namespace views 1172 } // namespace views
OLDNEW
« no previous file with comments | « views/widget/widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698