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

Side by Side Diff: chrome/browser/guest_view/web_view/chrome_web_view_guest_delegate.cc

Issue 1929733002: Login Screen for Mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Document disabled features Created 4 years, 7 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 5
6 #include "chrome/browser/guest_view/web_view/chrome_web_view_guest_delegate.h" 6 #include "chrome/browser/guest_view/web_view/chrome_web_view_guest_delegate.h"
7 7
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h" 12 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h"
13 #include "chrome/browser/favicon/favicon_utils.h" 13 #include "chrome/browser/favicon/favicon_utils.h"
14 #include "chrome/browser/profiles/profile.h" 14 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/browser/renderer_context_menu/render_view_context_menu.h" 15 #include "chrome/browser/renderer_context_menu/render_view_context_menu.h"
16 #include "chrome/browser/ui/ash/ash_util.h"
16 #include "chrome/browser/ui/pdf/chrome_pdf_web_contents_helper_client.h" 17 #include "chrome/browser/ui/pdf/chrome_pdf_web_contents_helper_client.h"
17 #include "chrome/common/url_constants.h" 18 #include "chrome/common/url_constants.h"
18 #include "components/browsing_data/storage_partition_http_cache_data_remover.h" 19 #include "components/browsing_data/storage_partition_http_cache_data_remover.h"
19 #include "components/guest_view/browser/guest_view_event.h" 20 #include "components/guest_view/browser/guest_view_event.h"
20 #include "components/renderer_context_menu/context_menu_delegate.h" 21 #include "components/renderer_context_menu/context_menu_delegate.h"
21 #include "content/public/browser/render_process_host.h" 22 #include "content/public/browser/render_process_host.h"
22 #include "extensions/browser/api/web_request/web_request_api.h" 23 #include "extensions/browser/api/web_request/web_request_api.h"
23 #include "extensions/browser/guest_view/web_view/web_view_constants.h" 24 #include "extensions/browser/guest_view/web_view/web_view_constants.h"
24 25
25 using guest_view::GuestViewEvent; 26 using guest_view::GuestViewEvent;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 MenuModelToValue(pending_menu_->menu_model()); 69 MenuModelToValue(pending_menu_->menu_model());
69 args->Set(webview::kContextMenuItems, items.release()); 70 args->Set(webview::kContextMenuItems, items.release());
70 args->SetInteger(webview::kRequestId, request_id); 71 args->SetInteger(webview::kRequestId, request_id);
71 web_view_guest()->DispatchEventToView(base::WrapUnique( 72 web_view_guest()->DispatchEventToView(base::WrapUnique(
72 new GuestViewEvent(webview::kEventContextMenuShow, std::move(args)))); 73 new GuestViewEvent(webview::kEventContextMenuShow, std::move(args))));
73 return true; 74 return true;
74 } 75 }
75 76
76 void ChromeWebViewGuestDelegate::OnDidInitialize() { 77 void ChromeWebViewGuestDelegate::OnDidInitialize() {
77 #if defined(OS_CHROMEOS) 78 #if defined(OS_CHROMEOS)
79 if (chrome::IsRunningInMash()) {
80 NOTIMPLEMENTED();
81 return;
82 }
78 chromeos::AccessibilityManager* accessibility_manager = 83 chromeos::AccessibilityManager* accessibility_manager =
79 chromeos::AccessibilityManager::Get(); 84 chromeos::AccessibilityManager::Get();
80 CHECK(accessibility_manager); 85 CHECK(accessibility_manager);
81 accessibility_subscription_ = accessibility_manager->RegisterCallback( 86 accessibility_subscription_ = accessibility_manager->RegisterCallback(
82 base::Bind(&ChromeWebViewGuestDelegate::OnAccessibilityStatusChanged, 87 base::Bind(&ChromeWebViewGuestDelegate::OnAccessibilityStatusChanged,
83 weak_ptr_factory_.GetWeakPtr())); 88 weak_ptr_factory_.GetWeakPtr()));
84 #endif 89 #endif
85 } 90 }
86 91
87 // static 92 // static
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 158
154 void ChromeWebViewGuestDelegate::SetContextMenuPosition( 159 void ChromeWebViewGuestDelegate::SetContextMenuPosition(
155 const gfx::Point& position) { 160 const gfx::Point& position) {
156 if (context_menu_position_ == nullptr) 161 if (context_menu_position_ == nullptr)
157 context_menu_position_.reset(new gfx::Point()); 162 context_menu_position_.reset(new gfx::Point());
158 163
159 *context_menu_position_ = position; 164 *context_menu_position_ = position;
160 } 165 }
161 166
162 } // namespace extensions 167 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/wizard_controller.cc ('k') | chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698