OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/browser/ui/gtk/web_intent_picker_gtk.h" | 5 #include "chrome/browser/ui/gtk/web_intent_picker_gtk.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "chrome/browser/favicon/favicon_service.h" | 11 #include "chrome/browser/favicon/favicon_service.h" |
12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/browser/ui/browser.h" | 13 #include "chrome/browser/ui/browser.h" |
14 #include "chrome/browser/ui/browser_window.h" | 14 #include "chrome/browser/ui/browser_window.h" |
15 #include "chrome/browser/ui/gtk/browser_toolbar_gtk.h" | 15 #include "chrome/browser/ui/gtk/browser_toolbar_gtk.h" |
16 #include "chrome/browser/ui/gtk/browser_window_gtk.h" | 16 #include "chrome/browser/ui/gtk/browser_window_gtk.h" |
17 #include "chrome/browser/ui/gtk/custom_button.h" | 17 #include "chrome/browser/ui/gtk/custom_button.h" |
18 #include "chrome/browser/ui/gtk/gtk_theme_service.h" | 18 #include "chrome/browser/ui/gtk/gtk_theme_service.h" |
19 #include "chrome/browser/ui/gtk/gtk_util.h" | 19 #include "chrome/browser/ui/gtk/gtk_util.h" |
20 #include "chrome/browser/ui/gtk/location_bar_view_gtk.h" | 20 #include "chrome/browser/ui/gtk/location_bar_view_gtk.h" |
21 #include "chrome/browser/ui/gtk/tab_contents_container_gtk.h" | 21 #include "chrome/browser/ui/gtk/tab_contents_container_gtk.h" |
22 #include "chrome/browser/ui/intents/web_intent_picker_controller.h" | 22 #include "chrome/browser/ui/intents/web_intent_picker_controller.h" |
23 #include "chrome/browser/ui/intents/web_intent_picker_delegate.h" | 23 #include "chrome/browser/ui/intents/web_intent_picker_delegate.h" |
24 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 24 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
25 #include "content/browser/browsing_instance.h" | |
26 #include "content/browser/renderer_host/render_view_host.h" | 25 #include "content/browser/renderer_host/render_view_host.h" |
27 #include "content/browser/renderer_host/render_widget_host_view_gtk.h" | 26 #include "content/browser/renderer_host/render_widget_host_view_gtk.h" |
28 #include "content/browser/site_instance.h" | 27 #include "content/browser/site_instance.h" |
29 #include "content/browser/tab_contents/tab_contents_view.h" | 28 #include "content/browser/tab_contents/tab_contents_view.h" |
30 #include "content/public/browser/notification_registrar.h" | 29 #include "content/public/browser/notification_registrar.h" |
31 #include "content/public/browser/notification_source.h" | 30 #include "content/public/browser/notification_source.h" |
32 #include "content/public/browser/notification_types.h" | 31 #include "content/public/browser/notification_types.h" |
33 #include "content/public/browser/web_contents.h" | 32 #include "content/public/browser/web_contents.h" |
34 #include "googleurl/src/gurl.h" | 33 #include "googleurl/src/gurl.h" |
35 #include "grit/generated_resources.h" | 34 #include "grit/generated_resources.h" |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 const WebContents* source) const { | 319 const WebContents* source) const { |
321 return true; | 320 return true; |
322 } | 321 } |
323 | 322 |
324 bool WebIntentPickerGtk::InlineDispositionDelegate:: | 323 bool WebIntentPickerGtk::InlineDispositionDelegate:: |
325 ShouldAddNavigationToHistory( | 324 ShouldAddNavigationToHistory( |
326 const history::HistoryAddPageArgs& add_page_args, | 325 const history::HistoryAddPageArgs& add_page_args, |
327 content::NavigationType navigation_type) { | 326 content::NavigationType navigation_type) { |
328 return false; | 327 return false; |
329 } | 328 } |
OLD | NEW |