| 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_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" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 // TabContentsViewGtk to position the dialogs. | 30 // TabContentsViewGtk to position the dialogs. |
| 31 void AttachConstrainedWindow(ConstrainedWindowGtk* constrained_window); | 31 void AttachConstrainedWindow(ConstrainedWindowGtk* constrained_window); |
| 32 void RemoveConstrainedWindow(ConstrainedWindowGtk* constrained_window); | 32 void RemoveConstrainedWindow(ConstrainedWindowGtk* constrained_window); |
| 33 | 33 |
| 34 | 34 |
| 35 private: | 35 private: |
| 36 // Overridden from NativeTabContentsView: | 36 // Overridden from NativeTabContentsView: |
| 37 virtual void InitNativeTabContentsView() OVERRIDE; | 37 virtual void InitNativeTabContentsView() OVERRIDE; |
| 38 virtual void Unparent() OVERRIDE; | 38 virtual void Unparent() OVERRIDE; |
| 39 virtual content::RenderWidgetHostView* CreateRenderWidgetHostView( | 39 virtual content::RenderWidgetHostView* CreateRenderWidgetHostView( |
| 40 RenderWidgetHost* render_widget_host) OVERRIDE; | 40 content::RenderWidgetHost* render_widget_host) OVERRIDE; |
| 41 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; | 41 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; |
| 42 virtual void SetPageTitle(const string16& title) OVERRIDE; | 42 virtual void SetPageTitle(const string16& title) OVERRIDE; |
| 43 virtual void StartDragging(const WebDropData& drop_data, | 43 virtual void StartDragging(const WebDropData& drop_data, |
| 44 WebKit::WebDragOperationsMask ops, | 44 WebKit::WebDragOperationsMask ops, |
| 45 const SkBitmap& image, | 45 const SkBitmap& image, |
| 46 const gfx::Point& image_offset) OVERRIDE; | 46 const gfx::Point& image_offset) OVERRIDE; |
| 47 virtual void CancelDrag() OVERRIDE; | 47 virtual void CancelDrag() OVERRIDE; |
| 48 virtual bool IsDoingDrag() const OVERRIDE; | 48 virtual bool IsDoingDrag() const OVERRIDE; |
| 49 virtual void SetDragCursor(WebKit::WebDragOperation operation) OVERRIDE; | 49 virtual void SetDragCursor(WebKit::WebDragOperation operation) OVERRIDE; |
| 50 virtual views::NativeWidget* AsNativeWidget() OVERRIDE; | 50 virtual views::NativeWidget* AsNativeWidget() OVERRIDE; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 86 |
| 87 // Each individual UI for constrained dialogs currently displayed. The | 87 // Each individual UI for constrained dialogs currently displayed. The |
| 88 // 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. |
| 89 std::vector<ConstrainedWindowGtk*> constrained_windows_; | 89 std::vector<ConstrainedWindowGtk*> constrained_windows_; |
| 90 | 90 |
| 91 DISALLOW_COPY_AND_ASSIGN(NativeTabContentsViewGtk); | 91 DISALLOW_COPY_AND_ASSIGN(NativeTabContentsViewGtk); |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 #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_ |
| 95 | 95 |
| OLD | NEW |