OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.h" | 5 #include "chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/hash_tables.h" | 10 #include "base/hash_tables.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 #include "chrome/common/extensions/extension_messages.h" | 34 #include "chrome/common/extensions/extension_messages.h" |
35 #include "chrome/common/pref_names.h" | 35 #include "chrome/common/pref_names.h" |
36 #include "chrome/common/url_constants.h" | 36 #include "chrome/common/url_constants.h" |
37 #include "content/public/browser/navigation_controller.h" | 37 #include "content/public/browser/navigation_controller.h" |
38 #include "content/public/browser/notification_details.h" | 38 #include "content/public/browser/notification_details.h" |
39 #include "content/public/browser/notification_source.h" | 39 #include "content/public/browser/notification_source.h" |
40 #include "content/public/browser/render_view_host.h" | 40 #include "content/public/browser/render_view_host.h" |
41 #include "content/public/browser/web_contents.h" | 41 #include "content/public/browser/web_contents.h" |
42 #include "content/public/browser/web_contents_view.h" | 42 #include "content/public/browser/web_contents_view.h" |
43 | 43 |
| 44 using content::NativeWebKeyboardEvent; |
44 using content::NavigationController; | 45 using content::NavigationController; |
45 using content::NotificationDetails; | 46 using content::NotificationDetails; |
46 using content::NotificationSource; | 47 using content::NotificationSource; |
47 using content::WebContents; | 48 using content::WebContents; |
48 using WebKit::WebInputEvent; | 49 using WebKit::WebInputEvent; |
49 | 50 |
50 namespace keys = extensions::offscreen_tabs_constants; | 51 namespace keys = extensions::offscreen_tabs_constants; |
51 namespace tabs_keys = extension_tabs_module_constants; | 52 namespace tabs_keys = extension_tabs_module_constants; |
52 namespace events = extension_event_names; | 53 namespace events = extension_event_names; |
53 | 54 |
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
831 // async case (when a "javascript": URL is sent to a tab). | 832 // async case (when a "javascript": URL is sent to a tab). |
832 if (!is_async) | 833 if (!is_async) |
833 SendResponse(true); | 834 SendResponse(true); |
834 | 835 |
835 return true; | 836 return true; |
836 } | 837 } |
837 | 838 |
838 void UpdateOffscreenTabFunction::PopulateResult() { | 839 void UpdateOffscreenTabFunction::PopulateResult() { |
839 // There's no result associated with this callback. | 840 // There's no result associated with this callback. |
840 } | 841 } |
OLD | NEW |