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

Side by Side Diff: chrome/browser/speech/speech_input_bubble_gtk.cc

Issue 7749017: Revert "content: Start splitting up chrome/browser/ui/gtk/gtk_util.h" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/about_chrome_dialog.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/speech/speech_input_bubble.h" 5 #include "chrome/browser/speech/speech_input_bubble.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/ui/browser.h" 9 #include "chrome/browser/ui/browser.h"
10 #include "chrome/browser/ui/gtk/browser_toolbar_gtk.h" 10 #include "chrome/browser/ui/gtk/browser_toolbar_gtk.h"
11 #include "chrome/browser/ui/gtk/browser_window_gtk.h" 11 #include "chrome/browser/ui/gtk/browser_window_gtk.h"
12 #include "chrome/browser/ui/gtk/bubble/bubble_gtk.h" 12 #include "chrome/browser/ui/gtk/bubble/bubble_gtk.h"
13 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h" 13 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h"
14 #include "chrome/browser/ui/gtk/gtk_theme_service.h" 14 #include "chrome/browser/ui/gtk/gtk_theme_service.h"
15 #include "chrome/browser/ui/gtk/gtk_util.h" 15 #include "chrome/browser/ui/gtk/gtk_util.h"
16 #include "chrome/browser/ui/gtk/location_bar_view_gtk.h" 16 #include "chrome/browser/ui/gtk/location_bar_view_gtk.h"
17 #include "content/browser/tab_contents/tab_contents.h" 17 #include "content/browser/tab_contents/tab_contents.h"
18 #include "grit/generated_resources.h" 18 #include "grit/generated_resources.h"
19 #include "grit/theme_resources.h" 19 #include "grit/theme_resources.h"
20 #include "media/audio/audio_manager.h" 20 #include "media/audio/audio_manager.h"
21 #include "ui/base/gtk/gtk_hig_constants.h"
22 #include "ui/base/gtk/owned_widget_gtk.h" 21 #include "ui/base/gtk/owned_widget_gtk.h"
23 #include "ui/base/l10n/l10n_util.h" 22 #include "ui/base/l10n/l10n_util.h"
24 #include "ui/base/resource/resource_bundle.h" 23 #include "ui/base/resource/resource_bundle.h"
25 #include "ui/gfx/gtk_util.h" 24 #include "ui/gfx/gtk_util.h"
26 #include "ui/gfx/rect.h" 25 #include "ui/gfx/rect.h"
27 26
28 namespace { 27 namespace {
29 28
30 const int kBubbleControlVerticalSpacing = 5; 29 const int kBubbleControlVerticalSpacing = 5;
31 const int kBubbleControlHorizontalSpacing = 20; 30 const int kBubbleControlHorizontalSpacing = 20;
32 const int kIconHorizontalPadding = 10; 31 const int kIconHorizontalPadding = 10;
33 const int kButtonBarHorizontalSpacing = 10; 32 const int kButtonBarHorizontalSpacing = 10;
34 33
35 // Use black for text labels since the bubble has white background. 34 // Use black for text labels since the bubble has white background.
36 const GdkColor kLabelTextColor = ui::kGdkBlack; 35 const GdkColor kLabelTextColor = gtk_util::kGdkBlack;
37 36
38 // Implementation of SpeechInputBubble for GTK. This shows a speech input bubble 37 // Implementation of SpeechInputBubble for GTK. This shows a speech input bubble
39 // on screen. 38 // on screen.
40 class SpeechInputBubbleGtk : public SpeechInputBubbleBase, 39 class SpeechInputBubbleGtk : public SpeechInputBubbleBase,
41 public BubbleDelegateGtk { 40 public BubbleDelegateGtk {
42 public: 41 public:
43 SpeechInputBubbleGtk(TabContents* tab_contents, 42 SpeechInputBubbleGtk(TabContents* tab_contents,
44 Delegate* delegate, 43 Delegate* delegate,
45 const gfx::Rect& element_rect); 44 const gfx::Rect& element_rect);
46 ~SpeechInputBubbleGtk(); 45 ~SpeechInputBubbleGtk();
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 } 281 }
283 282
284 } // namespace 283 } // namespace
285 284
286 SpeechInputBubble* SpeechInputBubble::CreateNativeBubble( 285 SpeechInputBubble* SpeechInputBubble::CreateNativeBubble(
287 TabContents* tab_contents, 286 TabContents* tab_contents,
288 Delegate* delegate, 287 Delegate* delegate,
289 const gfx::Rect& element_rect) { 288 const gfx::Rect& element_rect) {
290 return new SpeechInputBubbleGtk(tab_contents, delegate, element_rect); 289 return new SpeechInputBubbleGtk(tab_contents, delegate, element_rect);
291 } 290 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/about_chrome_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698