| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #include "chrome/browser/ui/gtk/location_bar_view_gtk.h" | 5 #include "chrome/browser/ui/gtk/location_bar_view_gtk.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 #include "chrome/browser/ui/omnibox/omnibox_edit_model.h" | 67 #include "chrome/browser/ui/omnibox/omnibox_edit_model.h" |
| 68 #include "chrome/browser/ui/omnibox/omnibox_popup_model.h" | 68 #include "chrome/browser/ui/omnibox/omnibox_popup_model.h" |
| 69 #include "chrome/browser/ui/passwords/manage_passwords_bubble_ui_controller.h" | 69 #include "chrome/browser/ui/passwords/manage_passwords_bubble_ui_controller.h" |
| 70 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 70 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 71 #include "chrome/browser/ui/webui/extensions/extension_info_ui.h" | 71 #include "chrome/browser/ui/webui/extensions/extension_info_ui.h" |
| 72 #include "chrome/browser/ui/zoom/zoom_controller.h" | 72 #include "chrome/browser/ui/zoom/zoom_controller.h" |
| 73 #include "chrome/common/badge_util.h" | 73 #include "chrome/common/badge_util.h" |
| 74 #include "chrome/common/chrome_switches.h" | 74 #include "chrome/common/chrome_switches.h" |
| 75 #include "chrome/common/extensions/manifest_handlers/icons_handler.h" | 75 #include "chrome/common/extensions/manifest_handlers/icons_handler.h" |
| 76 #include "chrome/common/pref_names.h" | 76 #include "chrome/common/pref_names.h" |
| 77 #include "components/bookmarks/bookmark_pref_names.h" |
| 77 #include "content/public/browser/navigation_entry.h" | 78 #include "content/public/browser/navigation_entry.h" |
| 78 #include "content/public/browser/notification_service.h" | 79 #include "content/public/browser/notification_service.h" |
| 79 #include "content/public/browser/web_contents.h" | 80 #include "content/public/browser/web_contents.h" |
| 80 #include "extensions/common/extension.h" | 81 #include "extensions/common/extension.h" |
| 81 #include "extensions/common/feature_switch.h" | 82 #include "extensions/common/feature_switch.h" |
| 82 #include "grit/generated_resources.h" | 83 #include "grit/generated_resources.h" |
| 83 #include "grit/theme_resources.h" | 84 #include "grit/theme_resources.h" |
| 84 #include "net/base/net_util.h" | 85 #include "net/base/net_util.h" |
| 85 #include "ui/accessibility/ax_enums.h" | 86 #include "ui/accessibility/ax_enums.h" |
| 86 #include "ui/base/accelerators/platform_accelerator_gtk.h" | 87 #include "ui/base/accelerators/platform_accelerator_gtk.h" |
| (...skipping 1884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1971 void* user_data) { | 1972 void* user_data) { |
| 1972 PageActionViewGtk* view = static_cast<PageActionViewGtk*>(user_data); | 1973 PageActionViewGtk* view = static_cast<PageActionViewGtk*>(user_data); |
| 1973 if (!gtk_widget_get_visible(view->widget())) | 1974 if (!gtk_widget_get_visible(view->widget())) |
| 1974 return FALSE; | 1975 return FALSE; |
| 1975 | 1976 |
| 1976 GdkEventButton event = {}; | 1977 GdkEventButton event = {}; |
| 1977 event.type = GDK_BUTTON_PRESS; | 1978 event.type = GDK_BUTTON_PRESS; |
| 1978 event.button = 1; | 1979 event.button = 1; |
| 1979 return view->OnButtonPressed(view->widget(), &event); | 1980 return view->OnButtonPressed(view->widget(), &event); |
| 1980 } | 1981 } |
| OLD | NEW |