| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 | 102 |
| 103 // views::MenuButtonListener method. | 103 // views::MenuButtonListener method. |
| 104 void OnMenuButtonClicked(views::MenuButton* source, | 104 void OnMenuButtonClicked(views::MenuButton* source, |
| 105 const gfx::Point& point, | 105 const gfx::Point& point, |
| 106 const ui::Event* event) override; | 106 const ui::Event* event) override; |
| 107 | 107 |
| 108 // ui::SimpleMenuModel::Delegate methods. | 108 // ui::SimpleMenuModel::Delegate methods. |
| 109 bool IsCommandIdChecked(int command_id) const override; | 109 bool IsCommandIdChecked(int command_id) const override; |
| 110 bool IsCommandIdEnabled(int command_id) const override; | 110 bool IsCommandIdEnabled(int command_id) const override; |
| 111 bool GetAcceleratorForCommandId(int command_id, | 111 bool GetAcceleratorForCommandId(int command_id, |
| 112 ui::Accelerator* accelerator) override; | 112 ui::Accelerator* accelerator) const override; |
| 113 void ExecuteCommand(int command_id, int event_flags) override; | 113 void ExecuteCommand(int command_id, int event_flags) override; |
| 114 | 114 |
| 115 // views::StyledLabelListener method. | 115 // views::StyledLabelListener method. |
| 116 void StyledLabelLinkClicked(views::StyledLabel* label, | 116 void StyledLabelLinkClicked(views::StyledLabel* label, |
| 117 const gfx::Range& range, | 117 const gfx::Range& range, |
| 118 int event_flags) override; | 118 int event_flags) override; |
| 119 | 119 |
| 120 // content::WebContentsObserver method. | 120 // content::WebContentsObserver method. |
| 121 void WebContentsDestroyed() override; | 121 void WebContentsDestroyed() override; |
| 122 | 122 |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 const bool is_in_incognito_window_; | 257 const bool is_in_incognito_window_; |
| 258 | 258 |
| 259 bool should_always_translate_; | 259 bool should_always_translate_; |
| 260 | 260 |
| 261 std::unique_ptr<WebContentMouseHandler> mouse_handler_; | 261 std::unique_ptr<WebContentMouseHandler> mouse_handler_; |
| 262 | 262 |
| 263 DISALLOW_COPY_AND_ASSIGN(TranslateBubbleView); | 263 DISALLOW_COPY_AND_ASSIGN(TranslateBubbleView); |
| 264 }; | 264 }; |
| 265 | 265 |
| 266 #endif // CHROME_BROWSER_UI_VIEWS_TRANSLATE_TRANSLATE_BUBBLE_VIEW_H_ | 266 #endif // CHROME_BROWSER_UI_VIEWS_TRANSLATE_TRANSLATE_BUBBLE_VIEW_H_ |
| OLD | NEW |