OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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/chromeos/extensions/file_manager/private_api_misc.h" | 5 #include "chrome/browser/chromeos/extensions/file_manager/private_api_misc.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
(...skipping 29 matching lines...) Expand all Loading... |
40 #include "chrome/common/extensions/api/manifest_types.h" | 40 #include "chrome/common/extensions/api/manifest_types.h" |
41 #include "chrome/common/pref_names.h" | 41 #include "chrome/common/pref_names.h" |
42 #include "chromeos/settings/timezone_settings.h" | 42 #include "chromeos/settings/timezone_settings.h" |
43 #include "components/drive/drive_pref_names.h" | 43 #include "components/drive/drive_pref_names.h" |
44 #include "components/drive/event_logger.h" | 44 #include "components/drive/event_logger.h" |
45 #include "components/prefs/pref_service.h" | 45 #include "components/prefs/pref_service.h" |
46 #include "components/signin/core/account_id/account_id.h" | 46 #include "components/signin/core/account_id/account_id.h" |
47 #include "components/signin/core/browser/profile_oauth2_token_service.h" | 47 #include "components/signin/core/browser/profile_oauth2_token_service.h" |
48 #include "components/signin/core/browser/signin_manager.h" | 48 #include "components/signin/core/browser/signin_manager.h" |
49 #include "components/user_manager/user_manager.h" | 49 #include "components/user_manager/user_manager.h" |
50 #include "content/public/browser/render_view_host.h" | 50 #include "components/zoom/page_zoom.h" |
51 #include "content/public/browser/web_contents.h" | 51 #include "content/public/browser/web_contents.h" |
52 #include "content/public/common/page_zoom.h" | 52 #include "content/public/common/page_zoom.h" |
53 #include "extensions/browser/app_window/app_window.h" | 53 #include "extensions/browser/app_window/app_window.h" |
54 #include "extensions/browser/app_window/app_window_registry.h" | 54 #include "extensions/browser/app_window/app_window_registry.h" |
55 #include "google_apis/drive/auth_service.h" | 55 #include "google_apis/drive/auth_service.h" |
56 #include "ui/base/webui/web_ui_util.h" | 56 #include "ui/base/webui/web_ui_util.h" |
57 #include "url/gurl.h" | 57 #include "url/gurl.h" |
58 | 58 |
59 namespace extensions { | 59 namespace extensions { |
60 namespace { | 60 namespace { |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 case api::file_manager_private::ZOOM_OPERATION_TYPE_OUT: | 295 case api::file_manager_private::ZOOM_OPERATION_TYPE_OUT: |
296 zoom_type = content::PAGE_ZOOM_OUT; | 296 zoom_type = content::PAGE_ZOOM_OUT; |
297 break; | 297 break; |
298 case api::file_manager_private::ZOOM_OPERATION_TYPE_RESET: | 298 case api::file_manager_private::ZOOM_OPERATION_TYPE_RESET: |
299 zoom_type = content::PAGE_ZOOM_RESET; | 299 zoom_type = content::PAGE_ZOOM_RESET; |
300 break; | 300 break; |
301 default: | 301 default: |
302 NOTREACHED(); | 302 NOTREACHED(); |
303 return false; | 303 return false; |
304 } | 304 } |
305 render_view_host_do_not_use()->Zoom(zoom_type); | 305 zoom::PageZoom::Zoom(GetSenderWebContents(), zoom_type); |
306 return true; | 306 return true; |
307 } | 307 } |
308 | 308 |
309 FileManagerPrivateRequestWebStoreAccessTokenFunction:: | 309 FileManagerPrivateRequestWebStoreAccessTokenFunction:: |
310 FileManagerPrivateRequestWebStoreAccessTokenFunction() { | 310 FileManagerPrivateRequestWebStoreAccessTokenFunction() { |
311 } | 311 } |
312 | 312 |
313 FileManagerPrivateRequestWebStoreAccessTokenFunction:: | 313 FileManagerPrivateRequestWebStoreAccessTokenFunction:: |
314 ~FileManagerPrivateRequestWebStoreAccessTokenFunction() { | 314 ~FileManagerPrivateRequestWebStoreAccessTokenFunction() { |
315 } | 315 } |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
688 base::File::Error result) { | 688 base::File::Error result) { |
689 if (result != base::File::FILE_OK) { | 689 if (result != base::File::FILE_OK) { |
690 Respond(Error("Failed to execute the action.")); | 690 Respond(Error("Failed to execute the action.")); |
691 return; | 691 return; |
692 } | 692 } |
693 | 693 |
694 Respond(NoArguments()); | 694 Respond(NoArguments()); |
695 } | 695 } |
696 | 696 |
697 } // namespace extensions | 697 } // namespace extensions |
OLD | NEW |