Cast: Stop logging kVideoFrameSentToEncoder and rename a couple events.
[chromium-blink-merge.git] / chrome / browser / chromeos / first_run / first_run_view.h
blobe72fa0c5ca03723e05adbfe4ae1828feaaafa60d
1 // Copyright 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_CHROMEOS_FIRST_RUN_FIRST_RUN_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_FIRST_RUN_FIRST_RUN_VIEW_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "content/public/browser/web_contents_delegate.h"
11 #include "ui/views/view.h"
13 class Profile;
15 namespace content {
16 class BrowserContext;
19 namespace views {
20 class WebView;
23 namespace chromeos {
25 class FirstRunActor;
27 // WebUI view used for first run tutorial.
28 class FirstRunView : public views::View,
29 public content::WebContentsDelegate {
30 public:
31 FirstRunView();
32 void Init(content::BrowserContext* context);
33 FirstRunActor* GetActor();
35 // Overriden from views::View.
36 virtual void Layout() OVERRIDE;
37 virtual void RequestFocus() OVERRIDE;
39 content::WebContents* GetWebContents();
41 private:
42 // Overriden from content::WebContentsDelegate.
43 virtual bool HandleContextMenu(
44 const content::ContextMenuParams& params) OVERRIDE;
45 virtual bool PreHandleGestureEvent(
46 content::WebContents* source,
47 const blink::WebGestureEvent& event) OVERRIDE;
49 views::WebView* web_view_;
51 DISALLOW_COPY_AND_ASSIGN(FirstRunView);
54 } // namespace chromeos
56 #endif // CHROME_BROWSER_CHROMEOS_FIRST_RUN_FIRST_RUN_VIEW_H_