OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_VIEWS_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_VIEWS_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_view.h" |
| 10 #include "views/widget/native_widget_views.h" |
| 11 |
| 12 class TabContents; |
| 13 |
| 14 class NativeTabContentsViewViews : public views::NativeWidgetViews, |
| 15 public NativeTabContentsView { |
| 16 public: |
| 17 explicit NativeTabContentsViewViews( |
| 18 internal::NativeTabContentsViewDelegate* delegate); |
| 19 virtual ~NativeTabContentsViewViews(); |
| 20 |
| 21 private: |
| 22 // Overridden from NativeTabContentsView: |
| 23 virtual void InitNativeTabContentsView() OVERRIDE; |
| 24 virtual void Unparent() OVERRIDE; |
| 25 virtual RenderWidgetHostView* CreateRenderWidgetHostView( |
| 26 RenderWidgetHost* render_widget_host) OVERRIDE; |
| 27 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; |
| 28 virtual void SetPageTitle(const std::wstring& title) OVERRIDE; |
| 29 virtual void StartDragging(const WebDropData& drop_data, |
| 30 WebKit::WebDragOperationsMask ops, |
| 31 const SkBitmap& image, |
| 32 const gfx::Point& image_offset) OVERRIDE; |
| 33 virtual void CancelDrag() OVERRIDE; |
| 34 virtual bool IsDoingDrag() const OVERRIDE; |
| 35 virtual void SetDragCursor(WebKit::WebDragOperation operation) OVERRIDE; |
| 36 virtual views::NativeWidget* AsNativeWidget() OVERRIDE; |
| 37 |
| 38 internal::NativeTabContentsViewDelegate* delegate_; |
| 39 |
| 40 DISALLOW_COPY_AND_ASSIGN(NativeTabContentsViewViews); |
| 41 }; |
| 42 |
| 43 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_VIEWS_H
_ |
OLD | NEW |