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

Side by Side Diff: chrome/views/root_view.cc

Issue 27317: Support DWM switching.... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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
« no previous file with comments | « chrome/views/root_view.h ('k') | chrome/views/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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "chrome/views/root_view.h" 5 #include "chrome/views/root_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #if defined(OS_WIN) 9 #if defined(OS_WIN)
10 #include "base/base_drag_source.h" 10 #include "base/base_drag_source.h"
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 ///////////////////////////////////////////////////////////////////////////// 213 /////////////////////////////////////////////////////////////////////////////
214 // 214 //
215 // RootView - tree 215 // RootView - tree
216 // 216 //
217 ///////////////////////////////////////////////////////////////////////////// 217 /////////////////////////////////////////////////////////////////////////////
218 218
219 Widget* RootView::GetWidget() const { 219 Widget* RootView::GetWidget() const {
220 return widget_; 220 return widget_;
221 } 221 }
222 222
223 void RootView::ThemeChanged() {
224 View::ThemeChanged();
225 }
226
223 ///////////////////////////////////////////////////////////////////////////// 227 /////////////////////////////////////////////////////////////////////////////
224 // 228 //
225 // RootView - event dispatch and propagation 229 // RootView - event dispatch and propagation
226 // 230 //
227 ///////////////////////////////////////////////////////////////////////////// 231 /////////////////////////////////////////////////////////////////////////////
228 232
229 void RootView::ViewHierarchyChanged(bool is_add, View* parent, View* child) { 233 void RootView::ViewHierarchyChanged(bool is_add, View* parent, View* child) {
230 if (!is_add) { 234 if (!is_add) {
231 if (!explicit_mouse_handler_ && mouse_pressed_handler_ == child) { 235 if (!explicit_mouse_handler_ && mouse_pressed_handler_ == child) {
232 mouse_pressed_handler_ = NULL; 236 mouse_pressed_handler_ = NULL;
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
966 void RootView::SetAccessibleName(const std::wstring& name) { 970 void RootView::SetAccessibleName(const std::wstring& name) {
967 accessible_name_.assign(name); 971 accessible_name_.assign(name);
968 } 972 }
969 973
970 View* RootView::GetDragView() { 974 View* RootView::GetDragView() {
971 return drag_view_; 975 return drag_view_;
972 } 976 }
973 977
974 } // namespace views 978 } // namespace views
975 979
OLDNEW
« no previous file with comments | « chrome/views/root_view.h ('k') | chrome/views/view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698