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 #include "chrome/browser/ui/gtk/browser_actions_toolbar_gtk.h" | 5 #include "chrome/browser/ui/gtk/browser_actions_toolbar_gtk.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <vector> | 10 #include <vector> |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "chrome/browser/ui/gtk/gtk_chrome_shrinkable_hbox.h" | 30 #include "chrome/browser/ui/gtk/gtk_chrome_shrinkable_hbox.h" |
31 #include "chrome/browser/ui/gtk/gtk_theme_service.h" | 31 #include "chrome/browser/ui/gtk/gtk_theme_service.h" |
32 #include "chrome/browser/ui/gtk/gtk_util.h" | 32 #include "chrome/browser/ui/gtk/gtk_util.h" |
33 #include "chrome/browser/ui/gtk/hover_controller_gtk.h" | 33 #include "chrome/browser/ui/gtk/hover_controller_gtk.h" |
34 #include "chrome/browser/ui/gtk/menu_gtk.h" | 34 #include "chrome/browser/ui/gtk/menu_gtk.h" |
35 #include "chrome/browser/ui/gtk/view_id_util.h" | 35 #include "chrome/browser/ui/gtk/view_id_util.h" |
36 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 36 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
37 #include "chrome/common/chrome_notification_types.h" | 37 #include "chrome/common/chrome_notification_types.h" |
38 #include "chrome/common/extensions/extension.h" | 38 #include "chrome/common/extensions/extension.h" |
39 #include "chrome/common/extensions/extension_manifest_constants.h" | 39 #include "chrome/common/extensions/extension_manifest_constants.h" |
40 #include "chrome/common/extensions/extension_resource.h" | |
41 #include "content/public/browser/notification_details.h" | 40 #include "content/public/browser/notification_details.h" |
42 #include "content/public/browser/notification_source.h" | 41 #include "content/public/browser/notification_source.h" |
43 #include "grit/theme_resources.h" | 42 #include "grit/theme_resources.h" |
44 #include "grit/ui_resources.h" | 43 #include "grit/ui_resources.h" |
45 #include "ui/base/accelerators/platform_accelerator_gtk.h" | 44 #include "ui/base/accelerators/platform_accelerator_gtk.h" |
46 #include "ui/base/gtk/gtk_compat.h" | 45 #include "ui/base/gtk/gtk_compat.h" |
47 #include "ui/base/resource/resource_bundle.h" | 46 #include "ui/base/resource/resource_bundle.h" |
48 #include "ui/gfx/canvas_skia_paint.h" | 47 #include "ui/gfx/canvas_skia_paint.h" |
49 #include "ui/gfx/gtk_util.h" | 48 #include "ui/gfx/gtk_util.h" |
50 #include "ui/gfx/image/image.h" | 49 #include "ui/gfx/image/image.h" |
(...skipping 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1093 | 1092 |
1094 menu->PopupAsContext(gfx::Point(event->x_root, event->y_root), | 1093 menu->PopupAsContext(gfx::Point(event->x_root, event->y_root), |
1095 event->time); | 1094 event->time); |
1096 return TRUE; | 1095 return TRUE; |
1097 } | 1096 } |
1098 | 1097 |
1099 void BrowserActionsToolbarGtk::OnButtonShowOrHide(GtkWidget* sender) { | 1098 void BrowserActionsToolbarGtk::OnButtonShowOrHide(GtkWidget* sender) { |
1100 if (!resize_animation_.is_animating()) | 1099 if (!resize_animation_.is_animating()) |
1101 UpdateChevronVisibility(); | 1100 UpdateChevronVisibility(); |
1102 } | 1101 } |
OLD | NEW |