blob: e72fa0c5ca03723e05adbfe4ae1828feaaafa60d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_CHROMEOS_FIRST_RUN_FIRST_RUN_VIEW_H_
#define CHROME_BROWSER_CHROMEOS_FIRST_RUN_FIRST_RUN_VIEW_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "content/public/browser/web_contents_delegate.h"
#include "ui/views/view.h"
class Profile;
namespace content {
class BrowserContext;
}
namespace views {
class WebView;
}
namespace chromeos {
class FirstRunActor;
// WebUI view used for first run tutorial.
class FirstRunView : public views::View,
public content::WebContentsDelegate {
public:
FirstRunView();
void Init(content::BrowserContext* context);
FirstRunActor* GetActor();
// Overriden from views::View.
virtual void Layout() OVERRIDE;
virtual void RequestFocus() OVERRIDE;
content::WebContents* GetWebContents();
private:
// Overriden from content::WebContentsDelegate.
virtual bool HandleContextMenu(
const content::ContextMenuParams& params) OVERRIDE;
virtual bool PreHandleGestureEvent(
content::WebContents* source,
const blink::WebGestureEvent& event) OVERRIDE;
views::WebView* web_view_;
DISALLOW_COPY_AND_ASSIGN(FirstRunView);
};
} // namespace chromeos
#endif // CHROME_BROWSER_CHROMEOS_FIRST_RUN_FIRST_RUN_VIEW_H_
|