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

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

Issue 12529012: Context menu on views must show on mouse down for non-WIN. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 7 years, 8 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
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 <set> 8 #include <set>
9 #include <stack> 9 #include <stack>
10 #include <vector> 10 #include <vector>
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 // Provided to allow the NativeWidget implementations to destroy the RootView 714 // Provided to allow the NativeWidget implementations to destroy the RootView
715 // _before_ the focus manager/tooltip manager. 715 // _before_ the focus manager/tooltip manager.
716 // TODO(beng): remove once we fold those objects onto this one. 716 // TODO(beng): remove once we fold those objects onto this one.
717 void DestroyRootView(); 717 void DestroyRootView();
718 718
719 private: 719 private:
720 friend class NativeTextfieldViewsTest; 720 friend class NativeTextfieldViewsTest;
721 friend class NativeComboboxViewsTest; 721 friend class NativeComboboxViewsTest;
722 friend class ScopedEvent; 722 friend class ScopedEvent;
723 723
724 class PostMousePressedProcessor;
725
724 // Returns whether capture should be released on mouse release. 726 // Returns whether capture should be released on mouse release.
725 virtual bool ShouldReleaseCaptureOnMouseReleased() const; 727 virtual bool ShouldReleaseCaptureOnMouseReleased() const;
726 728
727 // Sets the value of |disable_inactive_rendering_|. If the value changes, 729 // Sets the value of |disable_inactive_rendering_|. If the value changes,
728 // both the NonClientView and WidgetDelegate are notified. 730 // both the NonClientView and WidgetDelegate are notified.
729 void SetInactiveRenderingDisabled(bool value); 731 void SetInactiveRenderingDisabled(bool value);
730 732
731 // Persists the window's restored position and "show" state using the 733 // Persists the window's restored position and "show" state using the
732 // window delegate. 734 // window delegate.
733 void SaveWindowPlacement(); 735 void SaveWindowPlacement();
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 // True when window movement via mouse interaction with the frame should be 849 // True when window movement via mouse interaction with the frame should be
848 // disabled. 850 // disabled.
849 bool movement_disabled_; 851 bool movement_disabled_;
850 852
851 DISALLOW_COPY_AND_ASSIGN(Widget); 853 DISALLOW_COPY_AND_ASSIGN(Widget);
852 }; 854 };
853 855
854 } // namespace views 856 } // namespace views
855 857
856 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 858 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698