Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Side by Side Diff: chrome/browser/ui/gtk/content_setting_bubble_gtk.cc

Issue 22835002: Supports gfx::FontList in gfx::Canvas and ui::ElideText family. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: layout_text.h => text_utils.h Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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() {}
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/status_bubble_mac.mm ('k') | chrome/browser/ui/gtk/status_bubble_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698