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

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

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More compile fix for ToT Created 6 years, 7 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 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // views::BubbleDelegateView methods. 54 // views::BubbleDelegateView methods.
55 virtual void Init() OVERRIDE; 55 virtual void Init() OVERRIDE;
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() const OVERRIDE;
65 65
66 // views::CombboxListener methods. 66 // views::CombboxListener methods.
67 virtual void OnPerformAction(views::Combobox* combobox) OVERRIDE; 67 virtual void OnPerformAction(views::Combobox* combobox) OVERRIDE;
68 68
69 // views::LinkListener method. 69 // views::LinkListener method.
70 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; 70 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE;
71 71
72 // content::WebContentsObserver method. 72 // content::WebContentsObserver method.
73 virtual void WebContentsDestroyed() OVERRIDE; 73 virtual void WebContentsDestroyed() OVERRIDE;
74 74
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 FRIEND_TEST_ALL_PREFIXES(TranslateBubbleViewTest, 113 FRIEND_TEST_ALL_PREFIXES(TranslateBubbleViewTest,
114 CancelButtonReturningAfterTranslate); 114 CancelButtonReturningAfterTranslate);
115 FRIEND_TEST_ALL_PREFIXES(TranslateBubbleViewTest, CancelButtonReturningError); 115 FRIEND_TEST_ALL_PREFIXES(TranslateBubbleViewTest, CancelButtonReturningError);
116 116
117 TranslateBubbleView(views::View* anchor_view, 117 TranslateBubbleView(views::View* anchor_view,
118 scoped_ptr<TranslateBubbleModel> model, 118 scoped_ptr<TranslateBubbleModel> model,
119 TranslateErrors::Type error_type, 119 TranslateErrors::Type error_type,
120 content::WebContents* web_contents); 120 content::WebContents* web_contents);
121 121
122 // Returns the current child view. 122 // Returns the current child view.
123 views::View* GetCurrentView(); 123 views::View* GetCurrentView() const;
124 124
125 // Handles the event when the user presses a button. 125 // Handles the event when the user presses a button.
126 void HandleButtonPressed(ButtonID sender_id); 126 void HandleButtonPressed(ButtonID sender_id);
127 127
128 // Handles the event when the user clicks a link. 128 // Handles the event when the user clicks a link.
129 void HandleLinkClicked(LinkID sender_id); 129 void HandleLinkClicked(LinkID sender_id);
130 130
131 // Handles the event when the user changes an index of a combobox. 131 // Handles the event when the user changes an index of a combobox.
132 void HandleComboboxPerformAction(ComboboxID sender_id); 132 void HandleComboboxPerformAction(ComboboxID sender_id);
133 133
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // Whether the translation is acutually executed. 191 // Whether the translation is acutually executed.
192 bool translate_executed_; 192 bool translate_executed_;
193 193
194 // Whether one of denial buttons is clicked. 194 // Whether one of denial buttons is clicked.
195 bool denial_button_clicked_; 195 bool denial_button_clicked_;
196 196
197 DISALLOW_COPY_AND_ASSIGN(TranslateBubbleView); 197 DISALLOW_COPY_AND_ASSIGN(TranslateBubbleView);
198 }; 198 };
199 199
200 #endif // CHROME_BROWSER_UI_VIEWS_TRANSLATE_TRANSLATE_BUBBLE_VIEW_H_ 200 #endif // CHROME_BROWSER_UI_VIEWS_TRANSLATE_TRANSLATE_BUBBLE_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/toolbar/wrench_menu.cc ('k') | chrome/browser/ui/views/translate/translate_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698