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

Side by Side Diff: chrome/browser/safe_browsing/srt_global_error_win.h

Issue 616143002: Don't close SRT bubble on deactivate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/safe_browsing/srt_global_error_win.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SAFE_BROWSING_SRT_GLOBAL_ERROR_WIN_H_ 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_SRT_GLOBAL_ERROR_WIN_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_SRT_GLOBAL_ERROR_WIN_H_ 6 #define CHROME_BROWSER_SAFE_BROWSING_SRT_GLOBAL_ERROR_WIN_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 20 matching lines...) Expand all
31 virtual void ShowBubbleView(Browser* browser) OVERRIDE; 31 virtual void ShowBubbleView(Browser* browser) OVERRIDE;
32 32
33 // GlobalErrorWithStandardBubble. 33 // GlobalErrorWithStandardBubble.
34 virtual base::string16 GetBubbleViewTitle() OVERRIDE; 34 virtual base::string16 GetBubbleViewTitle() OVERRIDE;
35 virtual std::vector<base::string16> GetBubbleViewMessages() OVERRIDE; 35 virtual std::vector<base::string16> GetBubbleViewMessages() OVERRIDE;
36 virtual base::string16 GetBubbleViewAcceptButtonLabel() OVERRIDE; 36 virtual base::string16 GetBubbleViewAcceptButtonLabel() OVERRIDE;
37 virtual base::string16 GetBubbleViewCancelButtonLabel() OVERRIDE; 37 virtual base::string16 GetBubbleViewCancelButtonLabel() OVERRIDE;
38 virtual void OnBubbleViewDidClose(Browser* browser) OVERRIDE; 38 virtual void OnBubbleViewDidClose(Browser* browser) OVERRIDE;
39 virtual void BubbleViewAcceptButtonPressed(Browser* browser) OVERRIDE; 39 virtual void BubbleViewAcceptButtonPressed(Browser* browser) OVERRIDE;
40 virtual void BubbleViewCancelButtonPressed(Browser* browser) OVERRIDE; 40 virtual void BubbleViewCancelButtonPressed(Browser* browser) OVERRIDE;
41 virtual bool ShouldCloseOnDeactivate() const OVERRIDE;
41 42
42 private: 43 private:
43 // When the user took action, the GlobalError can be dismissed. 44 // When the user took action, the GlobalError can be dismissed.
44 void DismissGlobalError(); 45 void DismissGlobalError();
45 46
46 // Used to dismiss the GlobalError, then set to NULL. 47 // Used to dismiss the GlobalError, then set to NULL.
47 GlobalErrorService* global_error_service_; 48 GlobalErrorService* global_error_service_;
48 49
49 DISALLOW_COPY_AND_ASSIGN(SRTGlobalError); 50 DISALLOW_COPY_AND_ASSIGN(SRTGlobalError);
50 }; 51 };
51 52
52 #endif // CHROME_BROWSER_SAFE_BROWSING_SRT_GLOBAL_ERROR_WIN_H_ 53 #endif // CHROME_BROWSER_SAFE_BROWSING_SRT_GLOBAL_ERROR_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/srt_global_error_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698