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

Side by Side Diff: chrome/browser/ui/views/translate/translate_bubble_view.h

Issue 2827433005: return initial focused view (Closed)
Patch Set: Created 3 years, 8 months 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/translate/translate_bubble_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // Returns the bubble view currently shown. This may return NULL. 80 // Returns the bubble view currently shown. This may return NULL.
81 static TranslateBubbleView* GetCurrentBubble(); 81 static TranslateBubbleView* GetCurrentBubble();
82 82
83 TranslateBubbleModel* model() { return model_.get(); } 83 TranslateBubbleModel* model() { return model_.get(); }
84 84
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 View* GetInitiallyFocusedView() override;
90 bool ShouldShowCloseButton() const override; 91 bool ShouldShowCloseButton() const override;
91 void WindowClosing() override; 92 void WindowClosing() override;
92 93
93 // views::View methods. 94 // views::View methods.
94 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; 95 bool AcceleratorPressed(const ui::Accelerator& accelerator) override;
95 gfx::Size GetPreferredSize() const override; 96 gfx::Size GetPreferredSize() const override;
96 97
97 // views::ComboboxListener methods. 98 // views::ComboboxListener methods.
98 void OnPerformAction(views::Combobox* combobox) override; 99 void OnPerformAction(views::Combobox* combobox) override;
99 100
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 const bool is_in_incognito_window_; 256 const bool is_in_incognito_window_;
256 257
257 bool should_always_translate_; 258 bool should_always_translate_;
258 259
259 std::unique_ptr<WebContentMouseHandler> mouse_handler_; 260 std::unique_ptr<WebContentMouseHandler> mouse_handler_;
260 261
261 DISALLOW_COPY_AND_ASSIGN(TranslateBubbleView); 262 DISALLOW_COPY_AND_ASSIGN(TranslateBubbleView);
262 }; 263 };
263 264
264 #endif // CHROME_BROWSER_UI_VIEWS_TRANSLATE_TRANSLATE_BUBBLE_VIEW_H_ 265 #endif // CHROME_BROWSER_UI_VIEWS_TRANSLATE_TRANSLATE_BUBBLE_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/translate/translate_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698