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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.cc

Issue 292113008: Plumbing for browser process to access text surrounding selection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@adb_install_humans
Patch Set: Created 6 years, 6 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 (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/browser/renderer_host/render_widget_host_view_android.h" 5 #include "content/browser/renderer_host/render_widget_host_view_android.h"
6 6
7 #include <android/bitmap.h> 7 #include <android/bitmap.h>
8 8
9 #include "base/android/sys_utils.h" 9 #include "base/android/sys_utils.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 InternalSwapCompositorFrame(last_frame_info_->output_surface_id, 426 InternalSwapCompositorFrame(last_frame_info_->output_surface_id,
427 last_frame_info_->frame.Pass()); 427 last_frame_info_->frame.Pass());
428 last_frame_info_.reset(); 428 last_frame_info_.reset();
429 } 429 }
430 430
431 if (!is_showing_ && layer_) 431 if (!is_showing_ && layer_)
432 layer_->SetHideLayerAndSubtree(true); 432 layer_->SetHideLayerAndSubtree(true);
433 } 433 }
434 } 434 }
435 435
436 void RenderWidgetHostViewAndroid::OnTextSurroundingSelectionResponse(
437 const base::string16& content,
438 size_t start_offset,
439 size_t end_offset) {
440 }
441
436 void RenderWidgetHostViewAndroid::ReleaseLocksOnSurface() { 442 void RenderWidgetHostViewAndroid::ReleaseLocksOnSurface() {
437 if (!frame_evictor_->HasFrame()) { 443 if (!frame_evictor_->HasFrame()) {
438 DCHECK_EQ(locks_on_frame_count_, 0u); 444 DCHECK_EQ(locks_on_frame_count_, 0u);
439 return; 445 return;
440 } 446 }
441 while (locks_on_frame_count_ > 0) { 447 while (locks_on_frame_count_ > 0) {
442 UnlockCompositingSurface(); 448 UnlockCompositingSurface();
443 } 449 }
444 RunAckCallbacks(); 450 RunAckCallbacks();
445 } 451 }
(...skipping 994 matching lines...) Expand 10 before | Expand all | Expand 10 after
1440 results->availableRect = display.work_area(); 1446 results->availableRect = display.work_area();
1441 results->deviceScaleFactor = display.device_scale_factor(); 1447 results->deviceScaleFactor = display.device_scale_factor();
1442 results->orientationAngle = display.RotationAsDegree(); 1448 results->orientationAngle = display.RotationAsDegree();
1443 gfx::DeviceDisplayInfo info; 1449 gfx::DeviceDisplayInfo info;
1444 results->depth = info.GetBitsPerPixel(); 1450 results->depth = info.GetBitsPerPixel();
1445 results->depthPerComponent = info.GetBitsPerComponent(); 1451 results->depthPerComponent = info.GetBitsPerComponent();
1446 results->isMonochrome = (results->depthPerComponent == 0); 1452 results->isMonochrome = (results->depthPerComponent == 0);
1447 } 1453 }
1448 1454
1449 } // namespace content 1455 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698