| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_WIN_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_WIN_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_WIN_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_WIN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_view.h" | 9 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_view.h" |
| 10 #include "ui/views/widget/native_widget_win.h" | 10 #include "ui/views/widget/native_widget_win.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 WebDragDest* drag_dest() const { return drag_dest_.get(); } | 28 WebDragDest* drag_dest() const { return drag_dest_.get(); } |
| 29 | 29 |
| 30 content::WebContents* GetWebContents() const; | 30 content::WebContents* GetWebContents() const; |
| 31 | 31 |
| 32 private: | 32 private: |
| 33 // Overridden from NativeTabContentsView: | 33 // Overridden from NativeTabContentsView: |
| 34 virtual void InitNativeTabContentsView() OVERRIDE; | 34 virtual void InitNativeTabContentsView() OVERRIDE; |
| 35 virtual void Unparent() OVERRIDE; | 35 virtual void Unparent() OVERRIDE; |
| 36 virtual content::RenderWidgetHostView* CreateRenderWidgetHostView( | 36 virtual content::RenderWidgetHostView* CreateRenderWidgetHostView( |
| 37 RenderWidgetHost* render_widget_host) OVERRIDE; | 37 content::RenderWidgetHost* render_widget_host) OVERRIDE; |
| 38 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; | 38 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; |
| 39 virtual void SetPageTitle(const string16& title) OVERRIDE; | 39 virtual void SetPageTitle(const string16& title) OVERRIDE; |
| 40 virtual void StartDragging(const WebDropData& drop_data, | 40 virtual void StartDragging(const WebDropData& drop_data, |
| 41 WebKit::WebDragOperationsMask ops, | 41 WebKit::WebDragOperationsMask ops, |
| 42 const SkBitmap& image, | 42 const SkBitmap& image, |
| 43 const gfx::Point& image_offset) OVERRIDE; | 43 const gfx::Point& image_offset) OVERRIDE; |
| 44 virtual void CancelDrag() OVERRIDE; | 44 virtual void CancelDrag() OVERRIDE; |
| 45 virtual bool IsDoingDrag() const OVERRIDE; | 45 virtual bool IsDoingDrag() const OVERRIDE; |
| 46 virtual void SetDragCursor(WebKit::WebDragOperation operation) OVERRIDE; | 46 virtual void SetDragCursor(WebKit::WebDragOperation operation) OVERRIDE; |
| 47 virtual views::NativeWidget* AsNativeWidget() OVERRIDE; | 47 virtual views::NativeWidget* AsNativeWidget() OVERRIDE; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 // A drop target object that handles drags over this TabContents. | 80 // A drop target object that handles drags over this TabContents. |
| 81 scoped_refptr<WebDragDest> drag_dest_; | 81 scoped_refptr<WebDragDest> drag_dest_; |
| 82 | 82 |
| 83 // Used to handle the drag-and-drop. | 83 // Used to handle the drag-and-drop. |
| 84 scoped_refptr<WebContentsDragWin> drag_handler_; | 84 scoped_refptr<WebContentsDragWin> drag_handler_; |
| 85 | 85 |
| 86 DISALLOW_COPY_AND_ASSIGN(NativeTabContentsViewWin); | 86 DISALLOW_COPY_AND_ASSIGN(NativeTabContentsViewWin); |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_WIN_H_ | 89 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_WIN_H_ |
| OLD | NEW |