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

Side by Side Diff: chrome/browser/ui/views/translate/translate_bubble_view.h

Issue 59383003: Add the button style for combobox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add TransparentButton and use those Created 7 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CHROME_BROWSER_UI_VIEWS_TRANSLATE_TRANSLATE_BUBBLE_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TRANSLATE_TRANSLATE_BUBBLE_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_TRANSLATE_TRANSLATE_BUBBLE_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TRANSLATE_TRANSLATE_BUBBLE_VIEW_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 virtual void ButtonPressed(views::Button* sender, 56 virtual void ButtonPressed(views::Button* sender,
57 const ui::Event& event) OVERRIDE; 57 const ui::Event& event) OVERRIDE;
58 58
59 // views::WidgetDelegate method. 59 // views::WidgetDelegate method.
60 virtual void WindowClosing() OVERRIDE; 60 virtual void WindowClosing() OVERRIDE;
61 61
62 // views::View methods. 62 // views::View methods.
63 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; 63 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE;
64 virtual gfx::Size GetPreferredSize() OVERRIDE; 64 virtual gfx::Size GetPreferredSize() OVERRIDE;
65 65
66 // views::CombboxListener method. 66 // views::CombboxListener methods.
67 virtual void OnSelectedIndexChanged(views::Combobox* combobox) OVERRIDE; 67 virtual void OnSelectedIndexChanged(views::Combobox* combobox) OVERRIDE;
68 virtual void OnComboboxTextButtonClicked(views::Combobox* combobox) OVERRIDE;
68 69
69 // views::LinkListener method. 70 // views::LinkListener method.
70 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; 71 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE;
71 72
72 // content::WebContentsObserver method. 73 // content::WebContentsObserver method.
73 virtual void WebContentsDestroyed(content::WebContents* web_contents) 74 virtual void WebContentsDestroyed(content::WebContents* web_contents)
74 OVERRIDE; 75 OVERRIDE;
75 76
76 // Returns the current view state. 77 // Returns the current view state.
77 TranslateBubbleModel::ViewState GetViewState() const; 78 TranslateBubbleModel::ViewState GetViewState() const;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 // The browser to open the help URL into a new tab. 183 // The browser to open the help URL into a new tab.
183 Browser* browser_; 184 Browser* browser_;
184 185
185 // Whether the translation is acutually executed. 186 // Whether the translation is acutually executed.
186 bool translate_executed_; 187 bool translate_executed_;
187 188
188 DISALLOW_COPY_AND_ASSIGN(TranslateBubbleView); 189 DISALLOW_COPY_AND_ASSIGN(TranslateBubbleView);
189 }; 190 };
190 191
191 #endif // CHROME_BROWSER_UI_VIEWS_TRANSLATE_TRANSLATE_BUBBLE_VIEW_H_ 192 #endif // CHROME_BROWSER_UI_VIEWS_TRANSLATE_TRANSLATE_BUBBLE_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/translate/translate_bubble_view.cc » ('j') | ui/views/controls/combobox/combobox.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698