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

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

Issue 2190773003: [ABANDONED] Simplify ash shelf dimmer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore an EventHandler object; fix behavior tests. Created 4 years, 4 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 | « ui/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) 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/logging.h" 7 #include "base/logging.h"
8 #include "base/macros.h" 8 #include "base/macros.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 776 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 787
788 // If the view is removed during the drag operation, dragged_view_ is set to 788 // If the view is removed during the drag operation, dragged_view_ is set to
789 // NULL. 789 // NULL.
790 if (view && dragged_view_ == view) { 790 if (view && dragged_view_ == view) {
791 dragged_view_ = NULL; 791 dragged_view_ = NULL;
792 view->OnDragDone(); 792 view->OnDragDone();
793 } 793 }
794 OnDragComplete(); 794 OnDragComplete();
795 } 795 }
796 796
797 void Widget::OnDragEnter() {}
798
799 void Widget::OnDragExit() {}
800
797 void Widget::SchedulePaintInRect(const gfx::Rect& rect) { 801 void Widget::SchedulePaintInRect(const gfx::Rect& rect) {
798 native_widget_->SchedulePaintInRect(rect); 802 native_widget_->SchedulePaintInRect(rect);
799 } 803 }
800 804
801 void Widget::SetCursor(gfx::NativeCursor cursor) { 805 void Widget::SetCursor(gfx::NativeCursor cursor) {
802 native_widget_->SetCursor(cursor); 806 native_widget_->SetCursor(cursor);
803 } 807 }
804 808
805 bool Widget::IsMouseEventsEnabled() const { 809 bool Widget::IsMouseEventsEnabled() const {
806 return native_widget_->IsMouseEventsEnabled(); 810 return native_widget_->IsMouseEventsEnabled();
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after
1491 1495
1492 //////////////////////////////////////////////////////////////////////////////// 1496 ////////////////////////////////////////////////////////////////////////////////
1493 // internal::NativeWidgetPrivate, NativeWidget implementation: 1497 // internal::NativeWidgetPrivate, NativeWidget implementation:
1494 1498
1495 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { 1499 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() {
1496 return this; 1500 return this;
1497 } 1501 }
1498 1502
1499 } // namespace internal 1503 } // namespace internal
1500 } // namespace views 1504 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698