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

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

Issue 2085973004: Color: Remove ViewMsg_ColorProfile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't change profile yet Created 4 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 <utility> 9 #include <utility>
10 10
(...skipping 1483 matching lines...) Expand 10 before | Expand all | Expand 10 after
1494 const gfx::Size& desired_size) { 1494 const gfx::Size& desired_size) {
1495 NOTREACHED(); 1495 NOTREACHED();
1496 return false; 1496 return false;
1497 } 1497 }
1498 1498
1499 void RenderWidgetHostViewAndroid::GetScreenInfo(blink::WebScreenInfo* result) { 1499 void RenderWidgetHostViewAndroid::GetScreenInfo(blink::WebScreenInfo* result) {
1500 // ScreenInfo isn't tied to the widget on Android. Always return the default. 1500 // ScreenInfo isn't tied to the widget on Android. Always return the default.
1501 RenderWidgetHostViewBase::GetDefaultScreenInfo(result); 1501 RenderWidgetHostViewBase::GetDefaultScreenInfo(result);
1502 } 1502 }
1503 1503
1504 bool RenderWidgetHostViewAndroid::GetScreenColorProfile(
1505 std::vector<char>* color_profile) {
1506 DCHECK(color_profile->empty());
1507 NOTREACHED();
1508 return false;
1509 }
1510
1511 // TODO(jrg): Find out the implications and answer correctly here, 1504 // TODO(jrg): Find out the implications and answer correctly here,
1512 // as we are returning the WebView and not root window bounds. 1505 // as we are returning the WebView and not root window bounds.
1513 gfx::Rect RenderWidgetHostViewAndroid::GetBoundsInRootWindow() { 1506 gfx::Rect RenderWidgetHostViewAndroid::GetBoundsInRootWindow() {
1514 return GetViewBounds(); 1507 return GetViewBounds();
1515 } 1508 }
1516 1509
1517 void RenderWidgetHostViewAndroid::ProcessAckedTouchEvent( 1510 void RenderWidgetHostViewAndroid::ProcessAckedTouchEvent(
1518 const TouchEventWithLatencyInfo& touch, InputEventAckState ack_result) { 1511 const TouchEventWithLatencyInfo& touch, InputEventAckState ack_result) {
1519 const bool event_consumed = ack_result == INPUT_EVENT_ACK_STATE_CONSUMED; 1512 const bool event_consumed = ack_result == INPUT_EVENT_ACK_STATE_CONSUMED;
1520 gesture_provider_.OnTouchEventAck(touch.event.uniqueTouchEventId, 1513 gesture_provider_.OnTouchEventAck(touch.event.uniqueTouchEventId,
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
2028 case ui::MotionEvent::ACTION_UP: 2021 case ui::MotionEvent::ACTION_UP:
2029 case ui::MotionEvent::ACTION_POINTER_UP: 2022 case ui::MotionEvent::ACTION_POINTER_UP:
2030 UMA_HISTOGRAM_CUSTOM_COUNTS("Event.Latency.OS.TOUCH_RELEASED", 2023 UMA_HISTOGRAM_CUSTOM_COUNTS("Event.Latency.OS.TOUCH_RELEASED",
2031 delta.InMicroseconds(), 1, 1000000, 50); 2024 delta.InMicroseconds(), 1, 1000000, 50);
2032 default: 2025 default:
2033 return; 2026 return;
2034 } 2027 }
2035 } 2028 }
2036 2029
2037 } // namespace content 2030 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698