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

Unified Diff: chrome/browser/protector/settings_change_global_error_delegate.h

Issue 8342049: Added Protector, hooked up DSE verification with error bubble. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved histograms to protector folder Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/protector/settings_change_global_error_delegate.h
diff --git a/chrome/browser/protector/settings_change_global_error_delegate.h b/chrome/browser/protector/settings_change_global_error_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..e76185046bb76c9adb41df45f2af6d743a05d32b
--- /dev/null
+++ b/chrome/browser/protector/settings_change_global_error_delegate.h
@@ -0,0 +1,32 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_PROTECTOR_SETTINGS_CHANGE_GLOBAL_ERROR_DELEGATE_H_
+#define CHROME_BROWSER_PROTECTOR_SETTINGS_CHANGE_GLOBAL_ERROR_DELEGATE_H_
+#pragma once
+
+#include "base/basictypes.h"
+
+namespace protector {
+
+// Interface for notifications about settings change error bubble closing.
+class SettingsChangeGlobalErrorDelegate {
+ public:
+ virtual ~SettingsChangeGlobalErrorDelegate() {}
+
+ // Called if user clicks "Apply change" button.
+ virtual void OnApplyChanges() = 0;
+
+ // Called if user clicks "Discard change" button.
+ virtual void OnDiscardChanges() = 0;
+
+ // Called if user clicked outside the bubble and timeout for its reshow
+ // has passed.
+ virtual void OnDecisionTimeout() = 0;
+};
+
+} // namespace protector
+
+#endif // CHROME_BROWSER_PROTECTOR_SETTINGS_CHANGE_GLOBAL_ERROR_DELEGATE_H_
+
« no previous file with comments | « chrome/browser/protector/settings_change_global_error.cc ('k') | chrome/browser/search_engines/template_url_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698