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

Side by Side Diff: ash/wm/workspace/frame_maximize_button.h

Issue 10828265: Replace views::LocatedEvent with ui::LocatedEvent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/wm/workspace/frame_maximize_button.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 ASH_WM_WORKSPACE_FRAME_MAXIMIZE_BUTTON_H_ 5 #ifndef ASH_WM_WORKSPACE_FRAME_MAXIMIZE_BUTTON_H_
6 #define ASH_WM_WORKSPACE_FRAME_MAXIMIZE_BUTTON_H_ 6 #define ASH_WM_WORKSPACE_FRAME_MAXIMIZE_BUTTON_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/wm/workspace/snap_types.h" 9 #include "ash/wm/workspace/snap_types.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE; 61 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE;
62 virtual void OnMouseCaptureLost() OVERRIDE; 62 virtual void OnMouseCaptureLost() OVERRIDE;
63 virtual ui::GestureStatus OnGestureEvent( 63 virtual ui::GestureStatus OnGestureEvent(
64 const views::GestureEvent& event) OVERRIDE; 64 const views::GestureEvent& event) OVERRIDE;
65 65
66 private: 66 private:
67 class EscapeEventFilter; 67 class EscapeEventFilter;
68 68
69 // Initializes the snap-gesture based on the event. This should only be called 69 // Initializes the snap-gesture based on the event. This should only be called
70 // when the event is confirmed to have started a snap gesture. 70 // when the event is confirmed to have started a snap gesture.
71 void ProcessStartEvent(const views::LocatedEvent& event); 71 void ProcessStartEvent(const ui::LocatedEvent& event);
72 72
73 // Updates the snap-state based on the current event. This should only be 73 // Updates the snap-state based on the current event. This should only be
74 // called after the snap gesture has already started. 74 // called after the snap gesture has already started.
75 void ProcessUpdateEvent(const views::LocatedEvent& event); 75 void ProcessUpdateEvent(const ui::LocatedEvent& event);
76 76
77 // Returns true if the window was snapped. Returns false otherwise. 77 // Returns true if the window was snapped. Returns false otherwise.
78 bool ProcessEndEvent(const views::LocatedEvent& event); 78 bool ProcessEndEvent(const ui::LocatedEvent& event);
79 79
80 // Cancels snap behavior. If |keep_menu_open| is set, a possibly opened 80 // Cancels snap behavior. If |keep_menu_open| is set, a possibly opened
81 // bubble help will remain open. 81 // bubble help will remain open.
82 void Cancel(bool keep_menu_open); 82 void Cancel(bool keep_menu_open);
83 83
84 // Installs/uninstalls an EventFilter to track when escape is pressed. 84 // Installs/uninstalls an EventFilter to track when escape is pressed.
85 void InstallEventFilter(); 85 void InstallEventFilter();
86 void UninstallEventFilter(); 86 void UninstallEventFilter();
87 87
88 // Updates the snap position from the event location. This is invoked by 88 // Updates the snap position from the event location. This is invoked by
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 base::OneShotTimer<FrameMaximizeButton> update_timer_; 135 base::OneShotTimer<FrameMaximizeButton> update_timer_;
136 136
137 scoped_ptr<MaximizeBubbleController> maximizer_; 137 scoped_ptr<MaximizeBubbleController> maximizer_;
138 138
139 DISALLOW_COPY_AND_ASSIGN(FrameMaximizeButton); 139 DISALLOW_COPY_AND_ASSIGN(FrameMaximizeButton);
140 }; 140 };
141 141
142 } // namespace ash 142 } // namespace ash
143 143
144 #endif // ASH_WM_WORKSPACE_FRAME_MAXIMIZE_BUTTON_H_ 144 #endif // ASH_WM_WORKSPACE_FRAME_MAXIMIZE_BUTTON_H_
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | ash/wm/workspace/frame_maximize_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698