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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 void LinkClicked(views::Link* source, int event_flags) override; | 101 void LinkClicked(views::Link* source, int event_flags) override; |
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, | |
112 ui::Accelerator* accelerator) const override; | |
113 void ExecuteCommand(int command_id, int event_flags) override; | 111 void ExecuteCommand(int command_id, int event_flags) override; |
114 | 112 |
115 // views::StyledLabelListener method. | 113 // views::StyledLabelListener method. |
116 void StyledLabelLinkClicked(views::StyledLabel* label, | 114 void StyledLabelLinkClicked(views::StyledLabel* label, |
117 const gfx::Range& range, | 115 const gfx::Range& range, |
118 int event_flags) override; | 116 int event_flags) override; |
119 | 117 |
120 // content::WebContentsObserver method. | 118 // content::WebContentsObserver method. |
121 void WebContentsDestroyed() override; | 119 void WebContentsDestroyed() override; |
122 | 120 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 const bool is_in_incognito_window_; | 255 const bool is_in_incognito_window_; |
258 | 256 |
259 bool should_always_translate_; | 257 bool should_always_translate_; |
260 | 258 |
261 std::unique_ptr<WebContentMouseHandler> mouse_handler_; | 259 std::unique_ptr<WebContentMouseHandler> mouse_handler_; |
262 | 260 |
263 DISALLOW_COPY_AND_ASSIGN(TranslateBubbleView); | 261 DISALLOW_COPY_AND_ASSIGN(TranslateBubbleView); |
264 }; | 262 }; |
265 | 263 |
266 #endif // CHROME_BROWSER_UI_VIEWS_TRANSLATE_TRANSLATE_BUBBLE_VIEW_H_ | 264 #endif // CHROME_BROWSER_UI_VIEWS_TRANSLATE_TRANSLATE_BUBBLE_VIEW_H_ |
OLD | NEW |