summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/dom_view.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/views/dom_view.h')
-rw-r--r--chrome/browser/views/dom_view.h54
1 files changed, 4 insertions, 50 deletions
diff --git a/chrome/browser/views/dom_view.h b/chrome/browser/views/dom_view.h
index 4a804f8..095fcb7 100644
--- a/chrome/browser/views/dom_view.h
+++ b/chrome/browser/views/dom_view.h
@@ -1,59 +1,13 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 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.
-// DOMView is a ChromeView that displays the content of a web DOM.
-// It should be used with data: URLs.
-
#ifndef CHROME_BROWSER_VIEWS_DOM_VIEW_H_
#define CHROME_BROWSER_VIEWS_DOM_VIEW_H_
#pragma once
-#include "base/scoped_ptr.h"
-#include "googleurl/src/gurl.h"
-#include "views/controls/native/native_view_host.h"
-#include "views/event.h"
-
-class Profile;
-class SiteInstance;
-class TabContents;
-
-class DOMView : public views::NativeViewHost {
- public:
- DOMView();
- virtual ~DOMView();
-
- // Initialize the view, creating the contents. This should be
- // called once the view has been added to a container.
- //
- // If |instance| is not null, then the view will be loaded in the same
- // process as the given instance.
- bool Init(Profile* profile, SiteInstance* instance);
-
- // Loads the given URL into the page. You must have previously called Init().
- void LoadURL(const GURL& url);
-
- // The tab contents displaying the actual contents.
- TabContents* tab_contents() const { return tab_contents_.get(); }
-
- protected:
- // Overridden from View.
- virtual bool SkipDefaultKeyEventProcessing(const views::KeyEvent& e);
- virtual void Focus();
- virtual void ViewHierarchyChanged(bool is_add, views::View* parent,
- views::View* child);
-
- // Returns new allocated TabContents instance, caller is responsible deleting.
- // Override in derived classes to replace TabContents with derivative.
- virtual TabContents* CreateTabContents(Profile* profile,
- SiteInstance* instance);
-
- scoped_ptr<TabContents> tab_contents_;
-
- private:
- bool initialized_;
-
- DISALLOW_COPY_AND_ASSIGN(DOMView);
-};
+#include "chrome/browser/ui/views/dom_view.h"
+// TODO(beng): remove this file once all includes have been updated.
#endif // CHROME_BROWSER_VIEWS_DOM_VIEW_H_
+