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

Side by Side Diff: chrome/browser/gtk/translate/translate_infobar_base_gtk.h

Issue 5794003: Deinline even more destructors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_GTK_TRANSLATE_TRANSLATE_INFOBAR_BASE_GTK_H_ 5 #ifndef CHROME_BROWSER_GTK_TRANSLATE_TRANSLATE_INFOBAR_BASE_GTK_H_
6 #define CHROME_BROWSER_GTK_TRANSLATE_TRANSLATE_INFOBAR_BASE_GTK_H_ 6 #define CHROME_BROWSER_GTK_TRANSLATE_TRANSLATE_INFOBAR_BASE_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include "app/animation_delegate.h" 9 #include "app/animation_delegate.h"
10 #include "chrome/browser/translate/translate_infobar_view.h" 10 #include "chrome/browser/translate/translate_infobar_view.h"
(...skipping 25 matching lines...) Expand all
36 // Overridden from TranslateInfoBarView: 36 // Overridden from TranslateInfoBarView:
37 virtual void OriginalLanguageChanged() {} 37 virtual void OriginalLanguageChanged() {}
38 virtual void TargetLanguageChanged() {} 38 virtual void TargetLanguageChanged() {}
39 39
40 // Overridden from AnimationDelegate: 40 // Overridden from AnimationDelegate:
41 virtual void AnimationProgressed(const Animation* animation); 41 virtual void AnimationProgressed(const Animation* animation);
42 42
43 protected: 43 protected:
44 // Sub-classes that want to have the options menu button showing sould 44 // Sub-classes that want to have the options menu button showing sould
45 // override and return true. 45 // override and return true.
46 virtual bool ShowOptionsMenuButton() const { return false; } 46 virtual bool ShowOptionsMenuButton() const;
47 47
48 // Creates a label with the appropriate font and color for the translate 48 // Creates a label with the appropriate font and color for the translate
49 // infobars. 49 // infobars.
50 GtkWidget* CreateLabel(const std::string& text); 50 GtkWidget* CreateLabel(const std::string& text);
51 51
52 // Creates a combobox that displays the languages currently available. 52 // Creates a combobox that displays the languages currently available.
53 // |selected_language| is the language index (as used in the 53 // |selected_language| is the language index (as used in the
54 // TranslateInfoDelegate) that should be selected initially. 54 // TranslateInfoDelegate) that should be selected initially.
55 // |exclude_language| is the language index of the language that should not be 55 // |exclude_language| is the language index of the language that should not be
56 // included in the list (-1 means no language excluded). 56 // included in the list (-1 means no language excluded).
(...skipping 23 matching lines...) Expand all
80 // When 1, the infobar background should be pure WARNING_TYPE. 80 // When 1, the infobar background should be pure WARNING_TYPE.
81 double background_error_percent_; 81 double background_error_percent_;
82 82
83 // Changes the color of the background from normal to error color and back. 83 // Changes the color of the background from normal to error color and back.
84 scoped_ptr<SlideAnimation> background_color_animation_; 84 scoped_ptr<SlideAnimation> background_color_animation_;
85 85
86 DISALLOW_COPY_AND_ASSIGN(TranslateInfoBarBase); 86 DISALLOW_COPY_AND_ASSIGN(TranslateInfoBarBase);
87 }; 87 };
88 88
89 #endif // CHROME_BROWSER_GTK_TRANSLATE_TRANSLATE_INFOBAR_BASE_GTK_H_ 89 #endif // CHROME_BROWSER_GTK_TRANSLATE_TRANSLATE_INFOBAR_BASE_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/location_bar_view_gtk.cc ('k') | chrome/browser/gtk/translate/translate_infobar_base_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698