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

Side by Side Diff: chrome/browser/ui/views/tab_contents/native_tab_contents_view.h

Issue 9420007: Move RenderWidgetHostView into content namespace. Fix include paths. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix linux_chromeos_gtk build issue not caught by trybots. Created 8 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 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_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/string16.h" 11 #include "base/string16.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h"
13 #include "ui/gfx/native_widget_types.h" 13 #include "ui/gfx/native_widget_types.h"
14 14
15 class RenderWidgetHost; 15 class RenderWidgetHost;
16 struct WebDropData;
17 namespace content {
16 class RenderWidgetHostView; 18 class RenderWidgetHostView;
17 struct WebDropData; 19 }
18 namespace gfx { 20 namespace gfx {
19 class Point; 21 class Point;
20 } 22 }
21 namespace internal { 23 namespace internal {
22 class NativeTabContentsViewDelegate; 24 class NativeTabContentsViewDelegate;
23 } 25 }
24 namespace views { 26 namespace views {
25 class NativeWidget; 27 class NativeWidget;
26 } 28 }
27 29
28 class NativeTabContentsView { 30 class NativeTabContentsView {
29 public: 31 public:
30 virtual ~NativeTabContentsView() {} 32 virtual ~NativeTabContentsView() {}
31 33
32 static NativeTabContentsView* CreateNativeTabContentsView( 34 static NativeTabContentsView* CreateNativeTabContentsView(
33 internal::NativeTabContentsViewDelegate* delegate); 35 internal::NativeTabContentsViewDelegate* delegate);
34 36
35 virtual void InitNativeTabContentsView() = 0; 37 virtual void InitNativeTabContentsView() = 0;
36 38
37 virtual void Unparent() = 0; 39 virtual void Unparent() = 0;
38 40
39 virtual RenderWidgetHostView* CreateRenderWidgetHostView( 41 virtual content::RenderWidgetHostView* CreateRenderWidgetHostView(
40 RenderWidgetHost* render_widget_host) = 0; 42 RenderWidgetHost* render_widget_host) = 0;
41 43
42 virtual gfx::NativeWindow GetTopLevelNativeWindow() const = 0; 44 virtual gfx::NativeWindow GetTopLevelNativeWindow() const = 0;
43 45
44 virtual void SetPageTitle(const string16& title) = 0; 46 virtual void SetPageTitle(const string16& title) = 0;
45 47
46 virtual void StartDragging(const WebDropData& drop_data, 48 virtual void StartDragging(const WebDropData& drop_data,
47 WebKit::WebDragOperationsMask ops, 49 WebKit::WebDragOperationsMask ops,
48 const SkBitmap& image, 50 const SkBitmap& image,
49 const gfx::Point& image_offset) = 0; 51 const gfx::Point& image_offset) = 0;
50 virtual void CancelDrag() = 0; 52 virtual void CancelDrag() = 0;
51 virtual bool IsDoingDrag() const = 0; 53 virtual bool IsDoingDrag() const = 0;
52 virtual void SetDragCursor(WebKit::WebDragOperation operation) = 0; 54 virtual void SetDragCursor(WebKit::WebDragOperation operation) = 0;
53 55
54 virtual views::NativeWidget* AsNativeWidget() = 0; 56 virtual views::NativeWidget* AsNativeWidget() = 0;
55 }; 57 };
56 58
57 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_H_ 59 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698