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

Side by Side Diff: ash/wm/workspace/workspace_event_handler.cc

Issue 1892703002: Moves WmEvent to ash/wm/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « ash/wm/wm_event.cc ('k') | ash/wm/workspace/workspace_event_handler_unittest.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 #include "ash/wm/workspace/workspace_event_handler.h" 5 #include "ash/wm/workspace/workspace_event_handler.h"
6 6
7 #include "ash/metrics/user_metrics_recorder.h" 7 #include "ash/metrics/user_metrics_recorder.h"
8 #include "ash/shell.h" 8 #include "ash/shell.h"
9 #include "ash/touch/touch_uma.h" 9 #include "ash/touch/touch_uma.h"
10 #include "ash/wm/common/wm_event.h"
10 #include "ash/wm/window_state.h" 11 #include "ash/wm/window_state.h"
11 #include "ash/wm/wm_event.h"
12 #include "ui/aura/window.h" 12 #include "ui/aura/window.h"
13 #include "ui/aura/window_delegate.h" 13 #include "ui/aura/window_delegate.h"
14 #include "ui/base/hit_test.h" 14 #include "ui/base/hit_test.h"
15 15
16 namespace ash { 16 namespace ash {
17 17
18 WorkspaceEventHandler::WorkspaceEventHandler() 18 WorkspaceEventHandler::WorkspaceEventHandler()
19 : click_component_(HTNOWHERE) { 19 : click_component_(HTNOWHERE) {
20 } 20 }
21 21
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 Shell::GetInstance()->metrics()->RecordUserMetricsAction( 124 Shell::GetInstance()->metrics()->RecordUserMetricsAction(
125 UMA_TOGGLE_SINGLE_AXIS_MAXIMIZE_BORDER_CLICK); 125 UMA_TOGGLE_SINGLE_AXIS_MAXIMIZE_BORDER_CLICK);
126 const wm::WMEvent wm_event(wm::WM_EVENT_TOGGLE_HORIZONTAL_MAXIMIZE); 126 const wm::WMEvent wm_event(wm::WM_EVENT_TOGGLE_HORIZONTAL_MAXIMIZE);
127 target_state->OnWMEvent(&wm_event); 127 target_state->OnWMEvent(&wm_event);
128 event->StopPropagation(); 128 event->StopPropagation();
129 } 129 }
130 } 130 }
131 } 131 }
132 132
133 } // namespace ash 133 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/wm_event.cc ('k') | ash/wm/workspace/workspace_event_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698