| 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_
|
| +
|
|
|