| 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 namespace views { | |
| 15 class MouseEvent; | |
| 16 } | |
| 17 | |
| 18 class NativeTabContentsViewViews : public views::NativeWidgetViews, | |
| 19 public NativeTabContentsView { | |
| 20 public: | |
| 21 explicit NativeTabContentsViewViews( | |
| 22 internal::NativeTabContentsViewDelegate* delegate); | |
| 23 virtual ~NativeTabContentsViewViews(); | |
| 24 | |
| 25 private: | |
| 26 // Overridden from NativeWidgetViews: | |
| 27 virtual void OnBoundsChanged(const gfx::Rect& new_bounds, | |
| 28 const gfx::Rect& old_bounds) OVERRIDE; | |
| 29 virtual bool OnMouseEvent(const views::MouseEvent& event) OVERRIDE; | |
| 30 | |
| 31 // Overridden from NativeTabContentsView: | |
| 32 virtual void InitNativeTabContentsView() OVERRIDE; | |
| 33 virtual void Unparent() OVERRIDE; | |
| 34 virtual RenderWidgetHostView* CreateRenderWidgetHostView( | |
| 35 RenderWidgetHost* render_widget_host) OVERRIDE; | |
| 36 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; | |
| 37 virtual void SetPageTitle(const string16& title) OVERRIDE; | |
| 38 virtual void StartDragging(const WebDropData& drop_data, | |
| 39 WebKit::WebDragOperationsMask ops, | |
| 40 const SkBitmap& image, | |
| 41 const gfx::Point& image_offset) OVERRIDE; | |
| 42 virtual void CancelDrag() OVERRIDE; | |
| 43 virtual bool IsDoingDrag() const OVERRIDE; | |
| 44 virtual void SetDragCursor(WebKit::WebDragOperation operation) OVERRIDE; | |
| 45 virtual views::NativeWidget* AsNativeWidget() OVERRIDE; | |
| 46 | |
| 47 internal::NativeTabContentsViewDelegate* delegate_; | |
| 48 | |
| 49 DISALLOW_COPY_AND_ASSIGN(NativeTabContentsViewViews); | |
| 50 }; | |
| 51 | |
| 52 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_VIEWS_H
_ | |
| OLD | NEW |