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 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1018 IDR_OMNIBOX_POPUP_BORDER_AND_SHADOW_TOP, | 1018 IDR_OMNIBOX_POPUP_BORDER_AND_SHADOW_TOP, |
1019 IDR_OMNIBOX_POPUP_BORDER_AND_SHADOW_TOP_RIGHT, | 1019 IDR_OMNIBOX_POPUP_BORDER_AND_SHADOW_TOP_RIGHT, |
1020 IDR_OMNIBOX_POPUP_BORDER_AND_SHADOW_LEFT, | 1020 IDR_OMNIBOX_POPUP_BORDER_AND_SHADOW_LEFT, |
1021 IDR_OMNIBOX_POPUP_BORDER_AND_SHADOW_CENTER, | 1021 IDR_OMNIBOX_POPUP_BORDER_AND_SHADOW_CENTER, |
1022 IDR_OMNIBOX_POPUP_BORDER_AND_SHADOW_RIGHT, | 1022 IDR_OMNIBOX_POPUP_BORDER_AND_SHADOW_RIGHT, |
1023 IDR_OMNIBOX_POPUP_BORDER_AND_SHADOW_BOTTOM_LEFT, | 1023 IDR_OMNIBOX_POPUP_BORDER_AND_SHADOW_BOTTOM_LEFT, |
1024 IDR_OMNIBOX_POPUP_BORDER_AND_SHADOW_BOTTOM, | 1024 IDR_OMNIBOX_POPUP_BORDER_AND_SHADOW_BOTTOM, |
1025 IDR_OMNIBOX_POPUP_BORDER_AND_SHADOW_BOTTOM_RIGHT). | 1025 IDR_OMNIBOX_POPUP_BORDER_AND_SHADOW_BOTTOM_RIGHT). |
1026 RenderToWidget(widget); | 1026 RenderToWidget(widget); |
1027 } else { | 1027 } else { |
1028 NineBox(IDR_OMNIBOX_BORDER_AND_SHADOW_TOP_LEFT, | 1028 NineBox(IDR_TEXTFIELD_TOP_LEFT, |
1029 IDR_OMNIBOX_BORDER_AND_SHADOW_TOP, | 1029 IDR_TEXTFIELD_TOP, |
1030 IDR_OMNIBOX_BORDER_AND_SHADOW_TOP_RIGHT, | 1030 IDR_TEXTFIELD_TOP_RIGHT, |
1031 IDR_OMNIBOX_BORDER_AND_SHADOW_LEFT, | 1031 IDR_TEXTFIELD_LEFT, |
1032 IDR_OMNIBOX_BORDER_AND_SHADOW_CENTER, | 1032 IDR_TEXTFIELD_CENTER, |
1033 IDR_OMNIBOX_BORDER_AND_SHADOW_RIGHT, | 1033 IDR_TEXTFIELD_RIGHT, |
1034 IDR_OMNIBOX_BORDER_AND_SHADOW_BOTTOM_LEFT, | 1034 IDR_TEXTFIELD_BOTTOM_LEFT, |
1035 IDR_OMNIBOX_BORDER_AND_SHADOW_BOTTOM, | 1035 IDR_TEXTFIELD_BOTTOM, |
1036 IDR_OMNIBOX_BORDER_AND_SHADOW_BOTTOM_RIGHT). | 1036 IDR_TEXTFIELD_BOTTOM_RIGHT). |
1037 RenderToWidget(widget); | 1037 RenderToWidget(widget); |
1038 } | 1038 } |
1039 } | 1039 } |
1040 | 1040 |
1041 return FALSE; // Continue propagating the expose. | 1041 return FALSE; // Continue propagating the expose. |
1042 } | 1042 } |
1043 | 1043 |
1044 gboolean LocationBarViewGtk::OnIconReleased(GtkWidget* sender, | 1044 gboolean LocationBarViewGtk::OnIconReleased(GtkWidget* sender, |
1045 GdkEventButton* event) { | 1045 GdkEventButton* event) { |
1046 WebContents* tab = GetWebContents(); | 1046 WebContents* tab = GetWebContents(); |
(...skipping 916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1963 void* user_data) { | 1963 void* user_data) { |
1964 PageActionViewGtk* view = static_cast<PageActionViewGtk*>(user_data); | 1964 PageActionViewGtk* view = static_cast<PageActionViewGtk*>(user_data); |
1965 if (!gtk_widget_get_visible(view->widget())) | 1965 if (!gtk_widget_get_visible(view->widget())) |
1966 return FALSE; | 1966 return FALSE; |
1967 | 1967 |
1968 GdkEventButton event = {}; | 1968 GdkEventButton event = {}; |
1969 event.type = GDK_BUTTON_PRESS; | 1969 event.type = GDK_BUTTON_PRESS; |
1970 event.button = 1; | 1970 event.button = 1; |
1971 return view->OnButtonPressed(view->widget(), &event); | 1971 return view->OnButtonPressed(view->widget(), &event); |
1972 } | 1972 } |
OLD | NEW |