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