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

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

Issue 257153003: We have a problem in the process on destroying WebContentsImpl because (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Rebased onto origin/master again, resolved conflicts Created 6 years, 7 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
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; 63 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE;
64 virtual gfx::Size GetPreferredSize() OVERRIDE; 64 virtual gfx::Size GetPreferredSize() OVERRIDE;
65 65
66 // views::CombboxListener methods. 66 // views::CombboxListener methods.
67 virtual void OnPerformAction(views::Combobox* combobox) OVERRIDE; 67 virtual void OnPerformAction(views::Combobox* combobox) OVERRIDE;
68 68
69 // views::LinkListener method. 69 // views::LinkListener method.
70 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE; 70 virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE;
71 71
72 // content::WebContentsObserver method. 72 // content::WebContentsObserver method.
73 virtual void WebContentsDestroyed(content::WebContents* web_contents) 73 virtual void WebContentsDestroyed() OVERRIDE;
74 OVERRIDE;
75 74
76 // Returns the current view state. 75 // Returns the current view state.
77 TranslateBubbleModel::ViewState GetViewState() const; 76 TranslateBubbleModel::ViewState GetViewState() const;
78 77
79 private: 78 private:
80 enum LinkID { 79 enum LinkID {
81 LINK_ID_ADVANCED, 80 LINK_ID_ADVANCED,
82 LINK_ID_LANGUAGE_SETTINGS, 81 LINK_ID_LANGUAGE_SETTINGS,
83 }; 82 };
84 83
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 // Whether the translation is acutually executed. 191 // Whether the translation is acutually executed.
193 bool translate_executed_; 192 bool translate_executed_;
194 193
195 // Whether one of denial buttons is clicked. 194 // Whether one of denial buttons is clicked.
196 bool denial_button_clicked_; 195 bool denial_button_clicked_;
197 196
198 DISALLOW_COPY_AND_ASSIGN(TranslateBubbleView); 197 DISALLOW_COPY_AND_ASSIGN(TranslateBubbleView);
199 }; 198 };
200 199
201 #endif // CHROME_BROWSER_UI_VIEWS_TRANSLATE_TRANSLATE_BUBBLE_VIEW_H_ 200 #endif // CHROME_BROWSER_UI_VIEWS_TRANSLATE_TRANSLATE_BUBBLE_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/hung_renderer_view.cc ('k') | chrome/browser/ui/views/translate/translate_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698