| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2013 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. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_DESKTOP_USER_ACTION_HANDLER_AURA_H_ | |
| 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_DESKTOP_USER_ACTION_HANDLER_AURA_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/compiler_specific.h" | |
| 10 #include "ui/aura/client/user_action_client.h" | |
| 11 | |
| 12 class Browser; | |
| 13 | |
| 14 namespace content { | |
| 15 class WebContents; | |
| 16 } | |
| 17 | |
| 18 // Handles back/forward commands on a per-browser basis. | |
| 19 class DesktopUserActionHandlerAura : public aura::client::UserActionClient { | |
| 20 public: | |
| 21 explicit DesktopUserActionHandlerAura(Browser* browser); | |
| 22 virtual ~DesktopUserActionHandlerAura(); | |
| 23 | |
| 24 // Overridden from aura::client::UserActionClient: | |
| 25 virtual bool OnUserAction( | |
| 26 aura::client::UserActionClient::Command command) OVERRIDE; | |
| 27 | |
| 28 private: | |
| 29 // Returns the active web contents of |browser_|. | |
| 30 content::WebContents* GetActiveWebContents() const; | |
| 31 | |
| 32 Browser* browser_; | |
| 33 | |
| 34 DISALLOW_COPY_AND_ASSIGN(DesktopUserActionHandlerAura); | |
| 35 }; | |
| 36 | |
| 37 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_DESKTOP_USER_ACTION_HANDLER_AURA_H_ | |
| OLD | NEW |