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

Unified Diff: chrome/browser/command_updater_delegate.h

Issue 11308259: chrome: Extract CommandUpdaterDelegate into its own header file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: FakeCommandObserver Created 8 years, 1 month 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/command_updater_delegate.h
diff --git a/chrome/browser/command_updater_delegate.h b/chrome/browser/command_updater_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..3c6383621187a28c34abd931dd67e306e92b7ac1
--- /dev/null
+++ b/chrome/browser/command_updater_delegate.h
@@ -0,0 +1,24 @@
+// Copyright 2012 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_COMMAND_UPDATER_DELEGATE_H_
+#define CHROME_BROWSER_COMMAND_UPDATER_DELEGATE_H_
+
+#include "webkit/glue/window_open_disposition.h"
+
+// Implement this interface so that your object can execute commands when
+// needed.
+class CommandUpdaterDelegate {
+ public:
+ // Performs the action associated with the command with the specified ID and
+ // using the given disposition.
+ virtual void ExecuteCommandWithDisposition(
+ int id,
+ WindowOpenDisposition disposition) = 0;
+
+ protected:
+ virtual ~CommandUpdaterDelegate() {}
+};
+
+#endif // CHROME_BROWSER_COMMAND_UPDATER_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698