| 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/content_setting_bubble_gtk.h" | 5 #include "chrome/browser/ui/gtk/content_setting_bubble_gtk.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "content/public/browser/notification_source.h" | 25 #include "content/public/browser/notification_source.h" |
| 26 #include "content/public/browser/notification_types.h" | 26 #include "content/public/browser/notification_types.h" |
| 27 #include "content/public/browser/plugin_service.h" | 27 #include "content/public/browser/plugin_service.h" |
| 28 #include "content/public/browser/web_contents.h" | 28 #include "content/public/browser/web_contents.h" |
| 29 #include "grit/generated_resources.h" | 29 #include "grit/generated_resources.h" |
| 30 #include "grit/ui_resources.h" | 30 #include "grit/ui_resources.h" |
| 31 #include "ui/base/gtk/gtk_hig_constants.h" | 31 #include "ui/base/gtk/gtk_hig_constants.h" |
| 32 #include "ui/base/l10n/l10n_util.h" | 32 #include "ui/base/l10n/l10n_util.h" |
| 33 #include "ui/base/models/simple_menu_model.h" | 33 #include "ui/base/models/simple_menu_model.h" |
| 34 #include "ui/base/text/text_elider.h" | 34 #include "ui/base/text/text_elider.h" |
| 35 #include "ui/gfx/font.h" |
| 35 #include "ui/gfx/gtk_util.h" | 36 #include "ui/gfx/gtk_util.h" |
| 36 | 37 |
| 37 using content::PluginService; | 38 using content::PluginService; |
| 38 using content::WebContents; | 39 using content::WebContents; |
| 39 | 40 |
| 40 namespace { | 41 namespace { |
| 41 | 42 |
| 42 // The maximum width of a title entry in the content box. We elide anything | 43 // The maximum width of a title entry in the content box. We elide anything |
| 43 // longer than this. | 44 // longer than this. |
| 44 const int kMaxLinkPixelSize = 500; | 45 const int kMaxLinkPixelSize = 500; |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 GtkMediaMenuMap::iterator i(media_menus_.find(button)); | 416 GtkMediaMenuMap::iterator i(media_menus_.find(button)); |
| 416 DCHECK(i != media_menus_.end()); | 417 DCHECK(i != media_menus_.end()); |
| 417 i->second->menu->PopupForWidget(button, 1, gtk_get_current_event_time()); | 418 i->second->menu->PopupForWidget(button, 1, gtk_get_current_event_time()); |
| 418 } | 419 } |
| 419 | 420 |
| 420 ContentSettingBubbleGtk::MediaMenuGtk::MediaMenuGtk( | 421 ContentSettingBubbleGtk::MediaMenuGtk::MediaMenuGtk( |
| 421 content::MediaStreamType type) | 422 content::MediaStreamType type) |
| 422 : type(type) {} | 423 : type(type) {} |
| 423 | 424 |
| 424 ContentSettingBubbleGtk::MediaMenuGtk::~MediaMenuGtk() {} | 425 ContentSettingBubbleGtk::MediaMenuGtk::~MediaMenuGtk() {} |
| OLD | NEW |