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

Side by Side Diff: chrome/browser/ui/views/tab_contents/native_tab_contents_view_gtk.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) 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_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_GTK_H_
6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_GTK_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_GTK_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_gtk.h" 10 #include "ui/views/widget/native_widget_gtk.h"
11 11
12 class ConstrainedWindowGtk; 12 class ConstrainedWindowGtk;
13 class TabContents; 13 class TabContents;
14 class WebDragBookmarkHandlerGtk; 14 class WebDragBookmarkHandlerGtk;
15 15
16 namespace content { 16 namespace content {
17 class RenderWidgetHostView;
17 class WebDragDestGtk; 18 class WebDragDestGtk;
18 class WebDragSourceGtk; 19 class WebDragSourceGtk;
19 } 20 }
20 21
21 class NativeTabContentsViewGtk : public views::NativeWidgetGtk, 22 class NativeTabContentsViewGtk : public views::NativeWidgetGtk,
22 public NativeTabContentsView { 23 public NativeTabContentsView {
23 public: 24 public:
24 explicit NativeTabContentsViewGtk( 25 explicit NativeTabContentsViewGtk(
25 internal::NativeTabContentsViewDelegate* delegate); 26 internal::NativeTabContentsViewDelegate* delegate);
26 virtual ~NativeTabContentsViewGtk(); 27 virtual ~NativeTabContentsViewGtk();
27 28
28 // Unlike Windows, ConstrainedWindows need to collaborate with the 29 // Unlike Windows, ConstrainedWindows need to collaborate with the
29 // TabContentsViewGtk to position the dialogs. 30 // TabContentsViewGtk to position the dialogs.
30 void AttachConstrainedWindow(ConstrainedWindowGtk* constrained_window); 31 void AttachConstrainedWindow(ConstrainedWindowGtk* constrained_window);
31 void RemoveConstrainedWindow(ConstrainedWindowGtk* constrained_window); 32 void RemoveConstrainedWindow(ConstrainedWindowGtk* constrained_window);
32 33
33 34
34 private: 35 private:
35 // Overridden from NativeTabContentsView: 36 // Overridden from NativeTabContentsView:
36 virtual void InitNativeTabContentsView() OVERRIDE; 37 virtual void InitNativeTabContentsView() OVERRIDE;
37 virtual void Unparent() OVERRIDE; 38 virtual void Unparent() OVERRIDE;
38 virtual RenderWidgetHostView* CreateRenderWidgetHostView( 39 virtual content::RenderWidgetHostView* CreateRenderWidgetHostView(
39 RenderWidgetHost* render_widget_host) OVERRIDE; 40 RenderWidgetHost* render_widget_host) OVERRIDE;
40 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; 41 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE;
41 virtual void SetPageTitle(const string16& title) OVERRIDE; 42 virtual void SetPageTitle(const string16& title) OVERRIDE;
42 virtual void StartDragging(const WebDropData& drop_data, 43 virtual void StartDragging(const WebDropData& drop_data,
43 WebKit::WebDragOperationsMask ops, 44 WebKit::WebDragOperationsMask ops,
44 const SkBitmap& image, 45 const SkBitmap& image,
45 const gfx::Point& image_offset) OVERRIDE; 46 const gfx::Point& image_offset) OVERRIDE;
46 virtual void CancelDrag() OVERRIDE; 47 virtual void CancelDrag() OVERRIDE;
47 virtual bool IsDoingDrag() const OVERRIDE; 48 virtual bool IsDoingDrag() const OVERRIDE;
48 virtual void SetDragCursor(WebKit::WebDragOperation operation) OVERRIDE; 49 virtual void SetDragCursor(WebKit::WebDragOperation operation) OVERRIDE;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 86
86 // Each individual UI for constrained dialogs currently displayed. The 87 // Each individual UI for constrained dialogs currently displayed. The
87 // objects in this vector are owned by the TabContents, not the view. 88 // objects in this vector are owned by the TabContents, not the view.
88 std::vector<ConstrainedWindowGtk*> constrained_windows_; 89 std::vector<ConstrainedWindowGtk*> constrained_windows_;
89 90
90 DISALLOW_COPY_AND_ASSIGN(NativeTabContentsViewGtk); 91 DISALLOW_COPY_AND_ASSIGN(NativeTabContentsViewGtk);
91 }; 92 };
92 93
93 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_GTK_H_ 94 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_GTK_H_
94 95
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698