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

Side by Side Diff: ash/wm/toplevel_window_event_handler.h

Issue 2808723004: Renames WmShell to ShellPort (Closed)
Patch Set: feedback Created 3 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
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_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ 5 #ifndef ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_
6 #define ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ 6 #define ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/wm/wm_toplevel_window_event_handler.h" 9 #include "ash/wm/wm_toplevel_window_event_handler.h"
10 #include "ash/wm/wm_types.h" 10 #include "ash/wm/wm_types.h"
(...skipping 11 matching lines...) Expand all
22 } 22 }
23 23
24 namespace ash { 24 namespace ash {
25 namespace wm { 25 namespace wm {
26 } 26 }
27 27
28 class ASH_EXPORT ToplevelWindowEventHandler 28 class ASH_EXPORT ToplevelWindowEventHandler
29 : public ui::EventHandler, 29 : public ui::EventHandler,
30 public aura::client::WindowMoveClient { 30 public aura::client::WindowMoveClient {
31 public: 31 public:
32 explicit ToplevelWindowEventHandler(WmShell* shell); 32 ToplevelWindowEventHandler();
33 ~ToplevelWindowEventHandler() override; 33 ~ToplevelWindowEventHandler() override;
34 34
35 // Overridden from ui::EventHandler: 35 // Overridden from ui::EventHandler:
36 void OnKeyEvent(ui::KeyEvent* event) override; 36 void OnKeyEvent(ui::KeyEvent* event) override;
37 void OnMouseEvent(ui::MouseEvent* event) override; 37 void OnMouseEvent(ui::MouseEvent* event) override;
38 void OnGestureEvent(ui::GestureEvent* event) override; 38 void OnGestureEvent(ui::GestureEvent* event) override;
39 39
40 // Overridden form aura::client::WindowMoveClient: 40 // Overridden form aura::client::WindowMoveClient:
41 aura::client::WindowMoveResult RunMoveLoop( 41 aura::client::WindowMoveResult RunMoveLoop(
42 aura::Window* source, 42 aura::Window* source,
(...skipping 14 matching lines...) Expand all
57 bool in_move_loop_ = false; 57 bool in_move_loop_ = false;
58 58
59 base::WeakPtrFactory<ToplevelWindowEventHandler> weak_factory_; 59 base::WeakPtrFactory<ToplevelWindowEventHandler> weak_factory_;
60 60
61 DISALLOW_COPY_AND_ASSIGN(ToplevelWindowEventHandler); 61 DISALLOW_COPY_AND_ASSIGN(ToplevelWindowEventHandler);
62 }; 62 };
63 63
64 } // namespace ash 64 } // namespace ash
65 65
66 #endif // ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_ 66 #endif // ASH_WM_TOPLEVEL_WINDOW_EVENT_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698