| 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_GTK_WEB_INTENT_PICKER_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_WEB_INTENT_PICKER_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_WEB_INTENT_PICKER_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_WEB_INTENT_PICKER_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
| 10 | 10 |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "chrome/browser/ui/gtk/constrained_window_gtk.h" | 16 #include "chrome/browser/ui/gtk/constrained_window_gtk.h" |
| 17 #include "chrome/browser/ui/intents/web_intent_inline_disposition_delegate.h" | 17 #include "chrome/browser/ui/intents/web_intent_inline_disposition_delegate.h" |
| 18 #include "chrome/browser/ui/intents/web_intent_picker.h" | 18 #include "chrome/browser/ui/intents/web_intent_picker.h" |
| 19 #include "chrome/browser/ui/intents/web_intent_picker_model_observer.h" | 19 #include "chrome/browser/ui/intents/web_intent_picker_model_observer.h" |
| 20 #include "content/public/browser/notification_observer.h" | 20 #include "content/public/browser/notification_observer.h" |
| 21 #include "content/public/browser/notification_registrar.h" | 21 #include "content/public/browser/notification_registrar.h" |
| 22 #include "ui/base/gtk/gtk_signal.h" | 22 #include "ui/base/gtk/gtk_signal.h" |
| 23 #include "ui/base/gtk/owned_widget_gtk.h" | 23 #include "ui/base/gtk/owned_widget_gtk.h" |
| 24 | 24 |
| 25 class CustomDrawButton; | 25 class CustomDrawButton; |
| 26 class GURL; | 26 class GURL; |
| 27 class TabContentsContainerGtk; | 27 class TabContentsContainerGtk; |
| 28 class TabContentsWrapper; | 28 class TabContents; |
| 29 typedef TabContents TabContentsWrapper; |
| 29 class ThrobberGtk; | 30 class ThrobberGtk; |
| 30 class WebIntentPickerDelegate; | 31 class WebIntentPickerDelegate; |
| 31 | 32 |
| 32 // GTK implementation of WebIntentPicker. | 33 // GTK implementation of WebIntentPicker. |
| 33 class WebIntentPickerGtk : public WebIntentPicker, | 34 class WebIntentPickerGtk : public WebIntentPicker, |
| 34 public WebIntentPickerModelObserver, | 35 public WebIntentPickerModelObserver, |
| 35 public ConstrainedWindowGtkDelegate, | 36 public ConstrainedWindowGtkDelegate, |
| 36 public content::NotificationObserver { | 37 public content::NotificationObserver { |
| 37 public: | 38 public: |
| 38 WebIntentPickerGtk(TabContentsWrapper* tab_contents, | 39 WebIntentPickerGtk(TabContentsWrapper* tab_contents, |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 | 149 |
| 149 // content::WebContentsDelegate for the inline disposition dialog. | 150 // content::WebContentsDelegate for the inline disposition dialog. |
| 150 scoped_ptr<WebIntentInlineDispositionDelegate> inline_disposition_delegate_; | 151 scoped_ptr<WebIntentInlineDispositionDelegate> inline_disposition_delegate_; |
| 151 | 152 |
| 152 content::NotificationRegistrar registrar_; | 153 content::NotificationRegistrar registrar_; |
| 153 | 154 |
| 154 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerGtk); | 155 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerGtk); |
| 155 }; | 156 }; |
| 156 | 157 |
| 157 #endif // CHROME_BROWSER_UI_GTK_WEB_INTENT_PICKER_GTK_H_ | 158 #endif // CHROME_BROWSER_UI_GTK_WEB_INTENT_PICKER_GTK_H_ |
| OLD | NEW |