Chromium Code Reviews| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 85 // views::BubbleDialogDelegateView methods. | 85 // views::BubbleDialogDelegateView methods. |
| 86 void Init() override; | 86 void Init() override; |
| 87 void ButtonPressed(views::Button* sender, const ui::Event& event) override; | 87 void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
| 88 | 88 |
| 89 // views::WidgetDelegate methods. | 89 // views::WidgetDelegate methods. |
| 90 bool ShouldShowCloseButton() const override; | 90 bool ShouldShowCloseButton() const override; |
| 91 void WindowClosing() override; | 91 void WindowClosing() override; |
| 92 | 92 |
| 93 // views::View methods. | 93 // views::View methods. |
| 94 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; | 94 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; |
| 95 gfx::Size GetPreferredSize() const override; | 95 |
| 96 // views::DialogDelegateView methods. | |
|
Peter Kasting
2017/03/30 00:35:36
Nit: Combine with three sections above, label Loca
| |
| 97 gfx::Size GetUnsnappedPreferredSize() const override; | |
| 96 | 98 |
| 97 // views::ComboboxListener methods. | 99 // views::ComboboxListener methods. |
| 98 void OnPerformAction(views::Combobox* combobox) override; | 100 void OnPerformAction(views::Combobox* combobox) override; |
| 99 | 101 |
| 100 // views::LinkListener method. | 102 // views::LinkListener method. |
| 101 void LinkClicked(views::Link* source, int event_flags) override; | 103 void LinkClicked(views::Link* source, int event_flags) override; |
| 102 | 104 |
| 103 // views::MenuButtonListener method. | 105 // views::MenuButtonListener method. |
| 104 void OnMenuButtonClicked(views::MenuButton* source, | 106 void OnMenuButtonClicked(views::MenuButton* source, |
| 105 const gfx::Point& point, | 107 const gfx::Point& point, |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 255 const bool is_in_incognito_window_; | 257 const bool is_in_incognito_window_; |
| 256 | 258 |
| 257 bool should_always_translate_; | 259 bool should_always_translate_; |
| 258 | 260 |
| 259 std::unique_ptr<WebContentMouseHandler> mouse_handler_; | 261 std::unique_ptr<WebContentMouseHandler> mouse_handler_; |
| 260 | 262 |
| 261 DISALLOW_COPY_AND_ASSIGN(TranslateBubbleView); | 263 DISALLOW_COPY_AND_ASSIGN(TranslateBubbleView); |
| 262 }; | 264 }; |
| 263 | 265 |
| 264 #endif // CHROME_BROWSER_UI_VIEWS_TRANSLATE_TRANSLATE_BUBBLE_VIEW_H_ | 266 #endif // CHROME_BROWSER_UI_VIEWS_TRANSLATE_TRANSLATE_BUBBLE_VIEW_H_ |
| OLD | NEW |