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

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

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/drop_helper.cc ('k') | ui/views/widget/widget.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 #ifndef UI_VIEWS_WIDGET_WIDGET_H_ 5 #ifndef UI_VIEWS_WIDGET_WIDGET_H_
6 #define UI_VIEWS_WIDGET_WIDGET_H_ 6 #define UI_VIEWS_WIDGET_WIDGET_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 int operation, 595 int operation,
596 ui::DragDropTypes::DragEventSource source); 596 ui::DragDropTypes::DragEventSource source);
597 597
598 // Returns the view that requested the current drag operation via 598 // Returns the view that requested the current drag operation via
599 // RunShellDrag(), or NULL if there is no such view or drag operation. 599 // RunShellDrag(), or NULL if there is no such view or drag operation.
600 View* dragged_view() { 600 View* dragged_view() {
601 return const_cast<View*>(const_cast<const Widget*>(this)->dragged_view()); 601 return const_cast<View*>(const_cast<const Widget*>(this)->dragged_view());
602 } 602 }
603 const View* dragged_view() const { return dragged_view_; } 603 const View* dragged_view() const { return dragged_view_; }
604 604
605 // Minimal drag-and-drop notifications, used to detect drags over widgets.
606 virtual void OnDragEnter();
607 virtual void OnDragExit();
608
605 // Adds the specified |rect| in client area coordinates to the rectangle to be 609 // Adds the specified |rect| in client area coordinates to the rectangle to be
606 // redrawn. 610 // redrawn.
607 virtual void SchedulePaintInRect(const gfx::Rect& rect); 611 virtual void SchedulePaintInRect(const gfx::Rect& rect);
608 612
609 // Sets the currently visible cursor. If |cursor| is NULL, the cursor used 613 // Sets the currently visible cursor. If |cursor| is NULL, the cursor used
610 // before the current is restored. 614 // before the current is restored.
611 void SetCursor(gfx::NativeCursor cursor); 615 void SetCursor(gfx::NativeCursor cursor);
612 616
613 // Returns true if and only if mouse events are enabled. 617 // Returns true if and only if mouse events are enabled.
614 bool IsMouseEventsEnabled() const; 618 bool IsMouseEventsEnabled() const;
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
975 bool movement_disabled_; 979 bool movement_disabled_;
976 980
977 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; 981 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_;
978 982
979 DISALLOW_COPY_AND_ASSIGN(Widget); 983 DISALLOW_COPY_AND_ASSIGN(Widget);
980 }; 984 };
981 985
982 } // namespace views 986 } // namespace views
983 987
984 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 988 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW
« no previous file with comments | « ui/views/widget/drop_helper.cc ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698