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

Side by Side Diff: content/renderer/pepper/pepper_webplugin_impl.cc

Issue 853333002: Browser Plugin: Make aware of focus direction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 5 years, 11 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
« no previous file with comments | « content/renderer/pepper/pepper_webplugin_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "content/renderer/pepper/pepper_webplugin_impl.h" 5 #include "content/renderer/pepper/pepper_webplugin_impl.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/debug/crash_logging.h" 9 #include "base/debug/crash_logging.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 bool is_visible) { 171 bool is_visible) {
172 plugin_rect_ = window_rect; 172 plugin_rect_ = window_rect;
173 if (!instance_->FlashIsFullscreenOrPending()) { 173 if (!instance_->FlashIsFullscreenOrPending()) {
174 std::vector<gfx::Rect> cut_outs; 174 std::vector<gfx::Rect> cut_outs;
175 for (size_t i = 0; i < cut_outs_rects.size(); ++i) 175 for (size_t i = 0; i < cut_outs_rects.size(); ++i)
176 cut_outs.push_back(cut_outs_rects[i]); 176 cut_outs.push_back(cut_outs_rects[i]);
177 instance_->ViewChanged(plugin_rect_, clip_rect, cut_outs); 177 instance_->ViewChanged(plugin_rect_, clip_rect, cut_outs);
178 } 178 }
179 } 179 }
180 180
181 void PepperWebPluginImpl::updateFocus(bool focused) { 181 void PepperWebPluginImpl::updateFocus(bool focused,
182 blink::WebFocusType focus_type) {
182 instance_->SetWebKitFocus(focused); 183 instance_->SetWebKitFocus(focused);
183 } 184 }
184 185
185 void PepperWebPluginImpl::updateVisibility(bool visible) {} 186 void PepperWebPluginImpl::updateVisibility(bool visible) {}
186 187
187 bool PepperWebPluginImpl::acceptsInputEvents() { return true; } 188 bool PepperWebPluginImpl::acceptsInputEvents() { return true; }
188 189
189 bool PepperWebPluginImpl::handleInputEvent(const blink::WebInputEvent& event, 190 bool PepperWebPluginImpl::handleInputEvent(const blink::WebInputEvent& event,
190 blink::WebCursorInfo& cursor_info) { 191 blink::WebCursorInfo& cursor_info) {
191 if (instance_->FlashIsFullscreenOrPending()) 192 if (instance_->FlashIsFullscreenOrPending())
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 284
284 bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); } 285 bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); }
285 286
286 void PepperWebPluginImpl::rotateView(RotationType type) { 287 void PepperWebPluginImpl::rotateView(RotationType type) {
287 instance_->RotateView(type); 288 instance_->RotateView(type);
288 } 289 }
289 290
290 bool PepperWebPluginImpl::isPlaceholder() { return false; } 291 bool PepperWebPluginImpl::isPlaceholder() { return false; }
291 292
292 } // namespace content 293 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_webplugin_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698