OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 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 CHROME_BROWSER_TAB_CONTENTS_INTRODUCER_HANDLER_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_INTRODUCER_HANDLER_H_ |
| 7 #pragma once |
| 8 |
| 9 #include <map> |
| 10 |
| 11 #include "base/basictypes.h" |
| 12 |
| 13 class ContextMenuParams; |
| 14 class PrefService; |
| 15 class Profile; |
| 16 class TabContents; |
| 17 class TabContentsObserver; |
| 18 namespace ui { |
| 19 class SimpleMenuModel; |
| 20 } |
| 21 |
| 22 class IntroducerService { |
| 23 public: |
| 24 static TabContentsObserver* Make(TabContents* tab); |
| 25 static void RegisterUserPrefs(PrefService* user_prefs); |
| 26 static bool InitMenu( |
| 27 TabContents* tab, Profile* profile, const ContextMenuParams& params, |
| 28 std::map< int, std::pair<std::string,std::string> >* commands, |
| 29 ui::SimpleMenuModel* menu); |
| 30 static bool Introduce( |
| 31 TabContents* tab, Profile* profile, const ContextMenuParams& params, |
| 32 const std::pair<std::string,std::string>& selection); |
| 33 static void Dismiss(TabContents* tab, int request_id); |
| 34 |
| 35 private: |
| 36 DISALLOW_COPY_AND_ASSIGN(IntroducerService); |
| 37 }; |
| 38 |
| 39 #endif // CHROME_BROWSER_TAB_CONTENTS_INTRODUCER_HANDLER_H_ |
OLD | NEW |