command_updater_delegate.h 769 B

123456789101112131415161718192021222324
  1. // Copyright 2012 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef CHROME_BROWSER_COMMAND_UPDATER_DELEGATE_H_
  5. #define CHROME_BROWSER_COMMAND_UPDATER_DELEGATE_H_
  6. #include "ui/base/window_open_disposition.h"
  7. // Implement this interface so that your object can execute commands when
  8. // needed.
  9. class CommandUpdaterDelegate {
  10. public:
  11. // Performs the action associated with the command with the specified ID and
  12. // using the given disposition.
  13. virtual void ExecuteCommandWithDisposition(
  14. int id,
  15. WindowOpenDisposition disposition) = 0;
  16. protected:
  17. virtual ~CommandUpdaterDelegate() {}
  18. };
  19. #endif // CHROME_BROWSER_COMMAND_UPDATER_DELEGATE_H_