OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |