OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // DOMView is a ChromeView that displays the content of a web DOM. | 5 // DOMView is a ChromeView that displays the content of a web DOM. |
6 // It should be used with data: URLs. | 6 // It should be used with data: URLs. |
7 | 7 |
8 #ifndef CHROME_BROWSER_UI_VIEWS_DOM_VIEW_H_ | 8 #ifndef CHROME_BROWSER_UI_VIEWS_DOM_VIEW_H_ |
9 #define CHROME_BROWSER_UI_VIEWS_DOM_VIEW_H_ | 9 #define CHROME_BROWSER_UI_VIEWS_DOM_VIEW_H_ |
10 #pragma once | 10 #pragma once |
11 | 11 |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 13 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
14 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
| 15 #include "ui/views/events/event.h" |
15 #include "views/controls/native/native_view_host.h" | 16 #include "views/controls/native/native_view_host.h" |
16 #include "views/events/event.h" | |
17 | 17 |
18 class Profile; | 18 class Profile; |
19 class SiteInstance; | 19 class SiteInstance; |
20 class TabContents; | 20 class TabContents; |
21 | 21 |
22 class DOMView : public views::NativeViewHost { | 22 class DOMView : public views::NativeViewHost { |
23 public: | 23 public: |
24 // Internal class name. | 24 // Internal class name. |
25 static const char kViewClassName[]; | 25 static const char kViewClassName[]; |
26 | 26 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 scoped_ptr<TabContentsWrapper> dom_contents_; | 63 scoped_ptr<TabContentsWrapper> dom_contents_; |
64 | 64 |
65 private: | 65 private: |
66 bool initialized_; | 66 bool initialized_; |
67 | 67 |
68 DISALLOW_COPY_AND_ASSIGN(DOMView); | 68 DISALLOW_COPY_AND_ASSIGN(DOMView); |
69 }; | 69 }; |
70 | 70 |
71 #endif // CHROME_BROWSER_UI_VIEWS_DOM_VIEW_H_ | 71 #endif // CHROME_BROWSER_UI_VIEWS_DOM_VIEW_H_ |
OLD | NEW |