Remove support for specifying version on command line.
[chromium-blink-merge.git] / ui / aura / client / user_action_client.h
blob738a8d5fba1e60a6722be5315bec9c0a7820b37a
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
3 // found in the LICENSE file.
5 #ifndef UI_AURA_CLIENT_USER_ACTION_CLIENT_H_
6 #define UI_AURA_CLIENT_USER_ACTION_CLIENT_H_
8 #include "ui/aura/aura_export.h"
10 namespace aura {
11 class Window;
12 namespace client {
14 // An interface for handling a user action that isn't handled by the standard
15 // event path.
16 class AURA_EXPORT UserActionClient {
17 public:
18 enum Command {
19 BACK = 0,
20 FORWARD,
23 // Returns true if the command was handled and false otherwise.
24 virtual bool OnUserAction(Command command) = 0;
26 virtual ~UserActionClient() {}
29 // Sets/gets the client for handling user action on the specified root window.
30 AURA_EXPORT void SetUserActionClient(Window* root_window,
31 UserActionClient* client);
32 AURA_EXPORT UserActionClient* GetUserActionClient(Window* root_window);
34 } // namespace client
35 } // namespace aura
37 #endif // UI_AURA_CLIENT_USER_ACTION_CLIENT_H_