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

Side by Side Diff: chrome/browser/gears_integration.h

Issue 6576020: Remove Gears from Chrome (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: windows fixes Created 9 years, 9 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2006-2008 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_GEARS_INTEGRATION_H__
6 #define CHROME_BROWSER_GEARS_INTEGRATION_H__
7 #pragma once
8
9 #include "base/callback.h"
10 #include "base/string16.h"
11 #include "chrome/common/gears_api.h"
12 #include "ui/gfx/native_widget_types.h"
13
14 // TODO(michaeln): Rework this interface to match how other first class
15 // citizens of chrome are structured, as a GearsService with an accessor
16 // available via browser.gears_service().
17
18 class CPCommandInterface;
19 class GURL;
20 class SkBitmap;
21 struct WebApplicationInfo;
22
23 // We use this in place of GearsShortcutData so we can keep browser-specific
24 // data on the structure.
25 struct GearsCreateShortcutData : public GearsShortcutData2 {
26 CPCommandInterface* command_interface;
27 };
28
29 // Called when the Gears Settings button is pressed. |parent_wnd| is the
30 // window the Gears Settings dialog should be parented to.
31 void GearsSettingsPressed(gfx::NativeWindow parent_wnd);
32
33 // Calls into the Gears API to create a shortcut with the given parameters.
34 // 'app_info' is the optional information provided by the page. If any info is
35 // missing, we fallback to the given fallback params. 'fallback_icon' must be a
36 // 16x16 favicon. 'callback' will be called with a value indicating whether the
37 // shortcut has been created successfully.
38 typedef Callback2<const GearsShortcutData2&, bool>::Type
39 GearsCreateShortcutCallback;
40
41 void GearsCreateShortcut(const WebApplicationInfo& app_info,
42 const string16& fallback_name,
43 const GURL& fallback_url,
44 const SkBitmap& fallback_icon,
45 GearsCreateShortcutCallback* callback);
46
47 // Call into Gears to query the list of shortcuts. Results will be returned
48 // asynchronously via the callback. The callback's arguments will be NULL
49 // if there was an error.
50 typedef Callback1<GearsShortcutList*>::Type GearsQueryShortcutsCallback;
51
52 void GearsQueryShortcuts(GearsQueryShortcutsCallback* callback);
53
54 // When the Gears shortcut database is modified, the main thread is notified
55 // via the NotificationService, NOTIFY_WEB_APP_INSTALL_CHANGED.
56
57 #endif // CHROME_BROWSER_GEARS_INTEGRATION_H__
OLDNEW
« no previous file with comments | « chrome/browser/extensions/user_script_listener_unittest.cc ('k') | chrome/browser/gears_integration.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698