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

Side by Side Diff: ui/aura/client/user_action_client.h

Issue 38423002: Make aura::clients take Window instead of RootWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 2 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 | « ui/aura/client/tooltip_client.cc ('k') | ui/aura/client/user_action_client.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_AURA_CLIENT_USER_ACTION_CLIENT_H_ 5 #ifndef UI_AURA_CLIENT_USER_ACTION_CLIENT_H_
6 #define UI_AURA_CLIENT_USER_ACTION_CLIENT_H_ 6 #define UI_AURA_CLIENT_USER_ACTION_CLIENT_H_
7 7
8 #include "ui/aura/aura_export.h" 8 #include "ui/aura/aura_export.h"
9 9
10 namespace aura { 10 namespace aura {
11 class RootWindow; 11 class Window;
12 namespace client { 12 namespace client {
13 13
14 // An interface for handling a user action that isn't handled by the standard 14 // An interface for handling a user action that isn't handled by the standard
15 // event path. 15 // event path.
16 class AURA_EXPORT UserActionClient { 16 class AURA_EXPORT UserActionClient {
17 public: 17 public:
18 enum Command { 18 enum Command {
19 BACK = 0, 19 BACK = 0,
20 FORWARD, 20 FORWARD,
21 }; 21 };
22 22
23 // Returns true if the command was handled and false otherwise. 23 // Returns true if the command was handled and false otherwise.
24 virtual bool OnUserAction(Command command) = 0; 24 virtual bool OnUserAction(Command command) = 0;
25 25
26 virtual ~UserActionClient() {} 26 virtual ~UserActionClient() {}
27 }; 27 };
28 28
29 // Sets/gets the client for handling user action on the specified root window. 29 // Sets/gets the client for handling user action on the specified root window.
30 AURA_EXPORT void SetUserActionClient(RootWindow* root_window, 30 AURA_EXPORT void SetUserActionClient(Window* root_window,
31 UserActionClient* client); 31 UserActionClient* client);
32 AURA_EXPORT UserActionClient* GetUserActionClient(RootWindow* root_window); 32 AURA_EXPORT UserActionClient* GetUserActionClient(Window* root_window);
33 33
34 } // namespace client 34 } // namespace client
35 } // namespace aura 35 } // namespace aura
36 36
37 #endif // UI_AURA_CLIENT_USER_ACTION_CLIENT_H_ 37 #endif // UI_AURA_CLIENT_USER_ACTION_CLIENT_H_
OLDNEW
« no previous file with comments | « ui/aura/client/tooltip_client.cc ('k') | ui/aura/client/user_action_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698