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

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

Issue 8566052: views: Delete bubble, events, focus, layout directories and its stubbed files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win Created 9 years, 1 month 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) 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 <algorithm> 7 #include <algorithm>
8 8
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
11 #include "chrome/browser/ui/views/frame/browser_view.h" 11 #include "chrome/browser/ui/views/frame/browser_view.h"
12 #include "chrome/browser/ui/views/location_bar/location_icon_view.h" 12 #include "chrome/browser/ui/views/location_bar/location_icon_view.h"
13 #include "chrome/browser/ui/views/toolbar_view.h" 13 #include "chrome/browser/ui/views/toolbar_view.h"
14 #include "content/browser/tab_contents/tab_contents.h" 14 #include "content/browser/tab_contents/tab_contents.h"
15 #include "content/browser/tab_contents/tab_contents_view.h" 15 #include "content/browser/tab_contents/tab_contents_view.h"
16 #include "grit/generated_resources.h" 16 #include "grit/generated_resources.h"
17 #include "grit/theme_resources.h" 17 #include "grit/theme_resources.h"
18 #include "media/audio/audio_manager.h" 18 #include "media/audio/audio_manager.h"
19 #include "ui/base/l10n/l10n_util.h" 19 #include "ui/base/l10n/l10n_util.h"
20 #include "ui/base/resource/resource_bundle.h" 20 #include "ui/base/resource/resource_bundle.h"
21 #include "views/bubble/bubble_delegate.h" 21 #include "ui/views/bubble/bubble_delegate.h"
22 #include "ui/views/layout/layout_constants.h"
22 #include "views/controls/button/text_button.h" 23 #include "views/controls/button/text_button.h"
23 #include "views/controls/image_view.h" 24 #include "views/controls/image_view.h"
24 #include "views/controls/label.h" 25 #include "views/controls/label.h"
25 #include "views/controls/link.h" 26 #include "views/controls/link.h"
26 #include "views/controls/link_listener.h" 27 #include "views/controls/link_listener.h"
27 #include "views/layout/layout_constants.h"
28 28
29 namespace { 29 namespace {
30 30
31 // TODO(msw): Get color from theme/window color. 31 // TODO(msw): Get color from theme/window color.
32 const SkColor kColor = SK_ColorWHITE; 32 const SkColor kColor = SK_ColorWHITE;
33 33
34 const int kBubbleHorizMargin = 6; 34 const int kBubbleHorizMargin = 6;
35 const int kBubbleVertMargin = 4; 35 const int kBubbleVertMargin = 4;
36 const int kBubbleHeadingVertMargin = 6; 36 const int kBubbleHeadingVertMargin = 6;
37 const int kIconHorizontalOffset = 27; 37 const int kIconHorizontalOffset = 27;
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 } 369 }
370 370
371 } // namespace 371 } // namespace
372 372
373 SpeechInputBubble* SpeechInputBubble::CreateNativeBubble( 373 SpeechInputBubble* SpeechInputBubble::CreateNativeBubble(
374 TabContents* tab_contents, 374 TabContents* tab_contents,
375 SpeechInputBubble::Delegate* delegate, 375 SpeechInputBubble::Delegate* delegate,
376 const gfx::Rect& element_rect) { 376 const gfx::Rect& element_rect) {
377 return new SpeechInputBubbleImpl(tab_contents, delegate, element_rect); 377 return new SpeechInputBubbleImpl(tab_contents, delegate, element_rect);
378 } 378 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view_views.cc ('k') | chrome/browser/ui/find_bar/find_bar_host_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698