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"
27 // WebUI view used for first run tutorial.
28 class FirstRunView
: public views::View
,
29 public content::WebContentsDelegate
{
32 void Init(content::BrowserContext
* context
);
33 FirstRunActor
* GetActor();
35 // Overriden from views::View.
36 void Layout() override
;
37 void RequestFocus() override
;
39 content::WebContents
* GetWebContents();
42 // Overriden from content::WebContentsDelegate.
43 bool HandleContextMenu(const content::ContextMenuParams
& params
) override
;
44 bool PreHandleGestureEvent(content::WebContents
* source
,
45 const blink::WebGestureEvent
& event
) override
;
47 views::WebView
* web_view_
;
49 DISALLOW_COPY_AND_ASSIGN(FirstRunView
);
52 } // namespace chromeos
54 #endif // CHROME_BROWSER_CHROMEOS_FIRST_RUN_FIRST_RUN_VIEW_H_