Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / ui / views / frame / desktop_user_action_handler_aura.h
bloba3a61ee6f96fe8c5086da5dfb0a1da217e5a761c
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.
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_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "ui/aura/client/user_action_client.h"
12 class Browser;
14 namespace content {
15 class WebContents;
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();
24 // Overridden from aura::client::UserActionClient:
25 virtual bool OnUserAction(
26 aura::client::UserActionClient::Command command) OVERRIDE;
28 private:
29 // Returns the active web contents of |browser_|.
30 content::WebContents* GetActiveWebContents() const;
32 Browser* browser_;
34 DISALLOW_COPY_AND_ASSIGN(DesktopUserActionHandlerAura);
37 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_DESKTOP_USER_ACTION_HANDLER_AURA_H_