| 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_TAB_CONTENTS_CHROME_WEB_CONTENTS_VIEW_DELEGATE_GTK_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_CHROME_WEB_CONTENTS_VIEW_DELEGATE_GTK_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_CHROME_WEB_CONTENTS_VIEW_DELEGATE_GTK_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_CHROME_WEB_CONTENTS_VIEW_DELEGATE_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 private: | 54 private: |
| 55 // Sets the location of the constrained windows. | 55 // Sets the location of the constrained windows. |
| 56 CHROMEGTK_CALLBACK_1(ChromeWebContentsViewDelegateGtk, void, | 56 CHROMEGTK_CALLBACK_1(ChromeWebContentsViewDelegateGtk, void, |
| 57 OnSetFloatingPosition, | 57 OnSetFloatingPosition, |
| 58 GtkAllocation*); | 58 GtkAllocation*); |
| 59 | 59 |
| 60 // Contains |expanded_| as its GtkBin member. | 60 // Contains |expanded_| as its GtkBin member. |
| 61 ui::OwnedWidgetGtk floating_; | 61 ui::OwnedWidgetGtk floating_; |
| 62 | 62 |
| 63 // The UI for the constrained dialog currently displayed. This is owned by | 63 // The UI for the constrained dialog currently displayed. This is owned by |
| 64 // TabContents, not the view. | 64 // WebContents, not the view. |
| 65 ConstrainedWindowGtk* constrained_window_; | 65 ConstrainedWindowGtk* constrained_window_; |
| 66 | 66 |
| 67 // The context menu is reset every time we show it, but we keep a pointer to | 67 // The context menu is reset every time we show it, but we keep a pointer to |
| 68 // between uses so that it won't go out of scope before we're done with it. | 68 // between uses so that it won't go out of scope before we're done with it. |
| 69 scoped_ptr<RenderViewContextMenuGtk> context_menu_; | 69 scoped_ptr<RenderViewContextMenuGtk> context_menu_; |
| 70 | 70 |
| 71 // The chrome specific delegate that receives events from WebDragDestGtk. | 71 // The chrome specific delegate that receives events from WebDragDestGtk. |
| 72 scoped_ptr<WebDragBookmarkHandlerGtk> bookmark_handler_gtk_; | 72 scoped_ptr<WebDragBookmarkHandlerGtk> bookmark_handler_gtk_; |
| 73 | 73 |
| 74 content::WebContents* web_contents_; | 74 content::WebContents* web_contents_; |
| 75 | 75 |
| 76 GtkWidget* expanded_container_; | 76 GtkWidget* expanded_container_; |
| 77 ui::FocusStoreGtk* focus_store_; | 77 ui::FocusStoreGtk* focus_store_; |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 #endif // CHROME_BROWSER_TAB_CONTENTS_CHROME_WEB_CONTENTS_VIEW_DELEGATE_GTK_H_ | 80 #endif // CHROME_BROWSER_TAB_CONTENTS_CHROME_WEB_CONTENTS_VIEW_DELEGATE_GTK_H_ |
| OLD | NEW |