| OLD | NEW |
| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 virtual void ButtonPressed(views::Button* sender, | 58 virtual void ButtonPressed(views::Button* sender, |
| 59 const ui::Event& event) OVERRIDE; | 59 const ui::Event& event) OVERRIDE; |
| 60 | 60 |
| 61 // views::WidgetDelegate method. | 61 // views::WidgetDelegate method. |
| 62 virtual void WindowClosing() OVERRIDE; | 62 virtual void WindowClosing() OVERRIDE; |
| 63 | 63 |
| 64 // views::View methods. | 64 // views::View methods. |
| 65 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; | 65 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; |
| 66 virtual gfx::Size GetPreferredSize() OVERRIDE; | 66 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 67 | 67 |
| 68 // views::CombboxListener method. | 68 // views::CombboxListener methods. |
| 69 virtual void OnSelectedIndexChanged(views::Combobox* combobox) OVERRIDE; | 69 virtual void OnSelectedIndexChanged(views::Combobox* combobox) OVERRIDE; |
| 70 virtual void OnComboboxTextButtonClicked(views::Combobox* combobox) OVERRIDE; |
| 70 | 71 |
| 71 // views::LinkListener method. | 72 // views::LinkListener method. |
| 72 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; | 73 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; |
| 73 | 74 |
| 74 // content::WebContentsObserver method. | 75 // content::WebContentsObserver method. |
| 75 virtual void WebContentsDestroyed(content::WebContents* web_contents) | 76 virtual void WebContentsDestroyed(content::WebContents* web_contents) |
| 76 OVERRIDE; | 77 OVERRIDE; |
| 77 | 78 |
| 78 // Returns the current view state. | 79 // Returns the current view state. |
| 79 TranslateBubbleModel::ViewState GetViewState() const; | 80 TranslateBubbleModel::ViewState GetViewState() const; |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 // The browser to open the help URL into a new tab. | 190 // The browser to open the help URL into a new tab. |
| 190 Browser* browser_; | 191 Browser* browser_; |
| 191 | 192 |
| 192 // Whether the translation is acutually executed. | 193 // Whether the translation is acutually executed. |
| 193 bool translate_executed_; | 194 bool translate_executed_; |
| 194 | 195 |
| 195 DISALLOW_COPY_AND_ASSIGN(TranslateBubbleView); | 196 DISALLOW_COPY_AND_ASSIGN(TranslateBubbleView); |
| 196 }; | 197 }; |
| 197 | 198 |
| 198 #endif // CHROME_BROWSER_UI_VIEWS_TRANSLATE_TRANSLATE_BUBBLE_VIEW_H_ | 199 #endif // CHROME_BROWSER_UI_VIEWS_TRANSLATE_TRANSLATE_BUBBLE_VIEW_H_ |
| OLD | NEW |