• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2013 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 
5 #ifndef UI_MESSAGE_CENTER_VIEWS_MESSAGE_VIEW_CONTEXT_MENU_CONTROLLER_H_
6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_VIEW_CONTEXT_MENU_CONTROLLER_H_
7 
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "ui/views/context_menu_controller.h"
11 
12 namespace message_center {
13 class MessageCenterController;
14 
15 class MessageViewContextMenuController : public views::ContextMenuController {
16  public:
17   explicit MessageViewContextMenuController(
18       MessageCenterController* controller);
19   virtual ~MessageViewContextMenuController();
20 
21  private:
22   // Overridden from views::ContextMenuController:
23   virtual void ShowContextMenuForView(views::View* source,
24                                       const gfx::Point& point,
25                                       ui::MenuSourceType source_type) OVERRIDE;
26 
27   MessageCenterController* controller_;
28 
29   DISALLOW_COPY_AND_ASSIGN(MessageViewContextMenuController);
30 };
31 
32 }  // namespace message_center
33 
34 #endif  // UI_MESSAGE_CENTER_VIEWS_MESSAGE_VIEW_CONTEXT_MENU_CONTROLLER_H_
35