Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Unified Diff: chrome/browser/ui/views/tab_contents/native_tab_contents_view_views.h

Issue 7206055: Add an option to run Chrome in the views desktop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/tab_contents/native_tab_contents_view_views.h
===================================================================
--- chrome/browser/ui/views/tab_contents/native_tab_contents_view_views.h (revision 0)
+++ chrome/browser/ui/views/tab_contents/native_tab_contents_view_views.h (revision 0)
@@ -0,0 +1,43 @@
+// Copyright (c) 2011 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_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_VIEWS_H_
+#define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_VIEWS_H_
+#pragma once
+
+#include "chrome/browser/ui/views/tab_contents/native_tab_contents_view.h"
+#include "views/widget/native_widget_views.h"
+
+class TabContents;
+
+class NativeTabContentsViewViews : public views::NativeWidgetViews,
+ public NativeTabContentsView {
+ public:
+ explicit NativeTabContentsViewViews(
+ internal::NativeTabContentsViewDelegate* delegate);
+ virtual ~NativeTabContentsViewViews();
+
+ private:
+ // Overridden from NativeTabContentsView:
+ virtual void InitNativeTabContentsView() OVERRIDE;
+ virtual void Unparent() OVERRIDE;
+ virtual RenderWidgetHostView* CreateRenderWidgetHostView(
+ RenderWidgetHost* render_widget_host) OVERRIDE;
+ virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE;
+ virtual void SetPageTitle(const std::wstring& title) OVERRIDE;
+ virtual void StartDragging(const WebDropData& drop_data,
+ WebKit::WebDragOperationsMask ops,
+ const SkBitmap& image,
+ const gfx::Point& image_offset) OVERRIDE;
+ virtual void CancelDrag() OVERRIDE;
+ virtual bool IsDoingDrag() const OVERRIDE;
+ virtual void SetDragCursor(WebKit::WebDragOperation operation) OVERRIDE;
+ virtual views::NativeWidget* AsNativeWidget() OVERRIDE;
+
+ internal::NativeTabContentsViewDelegate* delegate_;
+
+ DISALLOW_COPY_AND_ASSIGN(NativeTabContentsViewViews);
+};
+
+#endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_VIEWS_H_
Property changes on: chrome\browser\ui\views\tab_contents\native_tab_contents_view_views.h
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698