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

Side by Side Diff: chrome/browser/ui/views/speech_recognition_bubble_views.cc

Issue 29263007: linux and chromeos: Turn on -Wunused-const-variable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 7 years, 2 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
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/speech/speech_recognition_bubble.h" 5 #include "chrome/browser/speech/speech_recognition_bubble.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
(...skipping 17 matching lines...) Expand all
28 #include "ui/views/controls/link_listener.h" 28 #include "ui/views/controls/link_listener.h"
29 #include "ui/views/layout/layout_constants.h" 29 #include "ui/views/layout/layout_constants.h"
30 30
31 using content::WebContents; 31 using content::WebContents;
32 32
33 namespace { 33 namespace {
34 34
35 const int kBubbleHorizMargin = 6; 35 const int kBubbleHorizMargin = 6;
36 const int kBubbleVertMargin = 4; 36 const int kBubbleVertMargin = 4;
37 const int kBubbleHeadingVertMargin = 6; 37 const int kBubbleHeadingVertMargin = 6;
38 const int kIconHorizontalOffset = 27;
39 const int kIconVerticalOffset = -7;
40 38
41 // This is the SpeechRecognitionBubble content and views bubble delegate. 39 // This is the SpeechRecognitionBubble content and views bubble delegate.
42 class SpeechRecognitionBubbleView : public views::BubbleDelegateView, 40 class SpeechRecognitionBubbleView : public views::BubbleDelegateView,
43 public views::ButtonListener, 41 public views::ButtonListener,
44 public views::LinkListener { 42 public views::LinkListener {
45 public: 43 public:
46 SpeechRecognitionBubbleView(SpeechRecognitionBubbleDelegate* delegate, 44 SpeechRecognitionBubbleView(SpeechRecognitionBubbleDelegate* delegate,
47 views::View* anchor_view, 45 views::View* anchor_view,
48 const gfx::Rect& element_rect, 46 const gfx::Rect& element_rect,
49 WebContents* web_contents); 47 WebContents* web_contents);
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 } 399 }
402 400
403 } // namespace 401 } // namespace
404 402
405 SpeechRecognitionBubble* SpeechRecognitionBubble::CreateNativeBubble( 403 SpeechRecognitionBubble* SpeechRecognitionBubble::CreateNativeBubble(
406 WebContents* web_contents, 404 WebContents* web_contents,
407 SpeechRecognitionBubble::Delegate* delegate, 405 SpeechRecognitionBubble::Delegate* delegate,
408 const gfx::Rect& element_rect) { 406 const gfx::Rect& element_rect) {
409 return new SpeechRecognitionBubbleImpl(web_contents, delegate, element_rect); 407 return new SpeechRecognitionBubbleImpl(web_contents, delegate, element_rect);
410 } 408 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/panels/panel_view.cc ('k') | chrome/browser/ui/views/tabs/dragged_tab_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698