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

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

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More compile fix for ToT Created 6 years, 7 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 | « ui/views/widget/widget.h ('k') | ui/views/widget/widget_unittest.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ui/views/widget/widget.h" 5 #include "ui/views/widget/widget.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 } 433 }
434 434
435 void Widget::RemoveRemovalsObserver(WidgetRemovalsObserver* observer) { 435 void Widget::RemoveRemovalsObserver(WidgetRemovalsObserver* observer) {
436 removals_observers_.RemoveObserver(observer); 436 removals_observers_.RemoveObserver(observer);
437 } 437 }
438 438
439 bool Widget::HasRemovalsObserver(WidgetRemovalsObserver* observer) { 439 bool Widget::HasRemovalsObserver(WidgetRemovalsObserver* observer) {
440 return removals_observers_.HasObserver(observer); 440 return removals_observers_.HasObserver(observer);
441 } 441 }
442 442
443 bool Widget::GetAccelerator(int cmd_id, ui::Accelerator* accelerator) { 443 bool Widget::GetAccelerator(int cmd_id, ui::Accelerator* accelerator) const {
444 return false; 444 return false;
445 } 445 }
446 446
447 void Widget::ViewHierarchyChanged( 447 void Widget::ViewHierarchyChanged(
448 const View::ViewHierarchyChangedDetails& details) { 448 const View::ViewHierarchyChangedDetails& details) {
449 if (!details.is_add) { 449 if (!details.is_add) {
450 if (details.child == dragged_view_) 450 if (details.child == dragged_view_)
451 dragged_view_ = NULL; 451 dragged_view_ = NULL;
452 FocusManager* focus_manager = GetFocusManager(); 452 FocusManager* focus_manager = GetFocusManager();
453 if (focus_manager) 453 if (focus_manager)
(...skipping 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after
1514 1514
1515 //////////////////////////////////////////////////////////////////////////////// 1515 ////////////////////////////////////////////////////////////////////////////////
1516 // internal::NativeWidgetPrivate, NativeWidget implementation: 1516 // internal::NativeWidgetPrivate, NativeWidget implementation:
1517 1517
1518 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { 1518 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() {
1519 return this; 1519 return this;
1520 } 1520 }
1521 1521
1522 } // namespace internal 1522 } // namespace internal
1523 } // namespace views 1523 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/widget.h ('k') | ui/views/widget/widget_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698