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

Side by Side Diff: chrome/browser/ui/views/infobars/after_translate_infobar.h

Issue 10827271: Replace views::Event with ui::Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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
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 #ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_AFTER_TRANSLATE_INFOBAR_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_AFTER_TRANSLATE_INFOBAR_H_
6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_AFTER_TRANSLATE_INFOBAR_H_ 6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_AFTER_TRANSLATE_INFOBAR_H_
7 7
8 #include "chrome/browser/translate/languages_menu_model.h" 8 #include "chrome/browser/translate/languages_menu_model.h"
9 #include "chrome/browser/translate/options_menu_model.h" 9 #include "chrome/browser/translate/options_menu_model.h"
10 #include "chrome/browser/ui/views/infobars/translate_infobar_base.h" 10 #include "chrome/browser/ui/views/infobars/translate_infobar_base.h"
(...skipping 12 matching lines...) Expand all
23 23
24 private: 24 private:
25 virtual ~AfterTranslateInfoBar(); 25 virtual ~AfterTranslateInfoBar();
26 26
27 // TranslateInfoBarBase: 27 // TranslateInfoBarBase:
28 virtual void Layout() OVERRIDE; 28 virtual void Layout() OVERRIDE;
29 virtual void ViewHierarchyChanged(bool is_add, 29 virtual void ViewHierarchyChanged(bool is_add,
30 views::View* parent, 30 views::View* parent,
31 views::View* child) OVERRIDE; 31 views::View* child) OVERRIDE;
32 virtual void ButtonPressed(views::Button* sender, 32 virtual void ButtonPressed(views::Button* sender,
33 const views::Event& event) OVERRIDE; 33 const ui::Event& event) OVERRIDE;
34 virtual int ContentMinimumWidth() const OVERRIDE; 34 virtual int ContentMinimumWidth() const OVERRIDE;
35 virtual void OriginalLanguageChanged() OVERRIDE; 35 virtual void OriginalLanguageChanged() OVERRIDE;
36 virtual void TargetLanguageChanged() OVERRIDE; 36 virtual void TargetLanguageChanged() OVERRIDE;
37 37
38 // views::MenuButtonListener: 38 // views::MenuButtonListener:
39 virtual void OnMenuButtonClicked(views::View* source, 39 virtual void OnMenuButtonClicked(views::View* source,
40 const gfx::Point& point) OVERRIDE; 40 const gfx::Point& point) OVERRIDE;
41 41
42 // The text displayed in the infobar is something like: 42 // The text displayed in the infobar is something like:
43 // "Translated from <lang1> to <lang2> [more text in some languages]" 43 // "Translated from <lang1> to <lang2> [more text in some languages]"
(...skipping 12 matching lines...) Expand all
56 LanguagesMenuModel target_language_menu_model_; 56 LanguagesMenuModel target_language_menu_model_;
57 OptionsMenuModel options_menu_model_; 57 OptionsMenuModel options_menu_model_;
58 58
59 // True if the target language comes before the original one. 59 // True if the target language comes before the original one.
60 bool swapped_language_buttons_; 60 bool swapped_language_buttons_;
61 61
62 DISALLOW_COPY_AND_ASSIGN(AfterTranslateInfoBar); 62 DISALLOW_COPY_AND_ASSIGN(AfterTranslateInfoBar);
63 }; 63 };
64 64
65 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_AFTER_TRANSLATE_INFOBAR_H_ 65 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_AFTER_TRANSLATE_INFOBAR_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/hung_renderer_view.cc ('k') | chrome/browser/ui/views/infobars/after_translate_infobar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698