| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_VIEWS_DOM_VIEW_H_ | 8 #ifndef CHROME_BROWSER_VIEWS_DOM_VIEW_H_ |
| 9 #define CHROME_BROWSER_VIEWS_DOM_VIEW_H_ | 9 #define CHROME_BROWSER_VIEWS_DOM_VIEW_H_ |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 explicit DOMView(const GURL& contents); | 21 explicit DOMView(const GURL& contents); |
| 22 virtual ~DOMView(); | 22 virtual ~DOMView(); |
| 23 | 23 |
| 24 // Initialize the view, causing it to load its contents. This should be | 24 // Initialize the view, causing it to load its contents. This should be |
| 25 // called once the view has been added to a container. | 25 // called once the view has been added to a container. |
| 26 // If |instance| is not null, then the view will be loaded in the same | 26 // If |instance| is not null, then the view will be loaded in the same |
| 27 // process as the given instance. | 27 // process as the given instance. |
| 28 bool Init(Profile* profile, SiteInstance* instance); | 28 bool Init(Profile* profile, SiteInstance* instance); |
| 29 | 29 |
| 30 protected: | 30 protected: |
| 31 virtual bool CanProcessTabKeyEvents() { return true; } |
| 32 |
| 31 DOMUIHost* host_; | 33 DOMUIHost* host_; |
| 32 | 34 |
| 33 private: | 35 private: |
| 34 GURL contents_; | 36 GURL contents_; |
| 35 bool initialized_; | 37 bool initialized_; |
| 36 | 38 |
| 37 DISALLOW_COPY_AND_ASSIGN(DOMView); | 39 DISALLOW_COPY_AND_ASSIGN(DOMView); |
| 38 }; | 40 }; |
| 39 | 41 |
| 40 #endif // CHROME_BROWSER_VIEWS_DOM_VIEW_H_ | 42 #endif // CHROME_BROWSER_VIEWS_DOM_VIEW_H_ |
| 41 | 43 |
| OLD | NEW |