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

Side by Side Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 2556723003: Merge color options into ColorBehavior (Closed)
Patch Set: Feedback Created 4 years 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 | « third_party/WebKit/Source/web/WebImageDecoder.cpp ('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 /* 1 /*
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 3014 matching lines...) Expand 10 before | Expand all | Expand 10 after
3025 3025
3026 void WebViewImpl::setZoomFactorForDeviceScaleFactor( 3026 void WebViewImpl::setZoomFactorForDeviceScaleFactor(
3027 float zoomFactorForDeviceScaleFactor) { 3027 float zoomFactorForDeviceScaleFactor) {
3028 m_zoomFactorForDeviceScaleFactor = zoomFactorForDeviceScaleFactor; 3028 m_zoomFactorForDeviceScaleFactor = zoomFactorForDeviceScaleFactor;
3029 if (!m_layerTreeView) 3029 if (!m_layerTreeView)
3030 return; 3030 return;
3031 setZoomLevel(m_zoomLevel); 3031 setZoomLevel(m_zoomLevel);
3032 } 3032 }
3033 3033
3034 void WebViewImpl::setDeviceColorProfile(const WebVector<char>& colorProfile) { 3034 void WebViewImpl::setDeviceColorProfile(const WebVector<char>& colorProfile) {
3035 ImageDecoder::setGlobalTargetColorProfile(colorProfile); 3035 ColorBehavior::setGlobalTargetColorProfile(colorProfile);
3036 } 3036 }
3037 3037
3038 void WebViewImpl::enableAutoResizeMode(const WebSize& minSize, 3038 void WebViewImpl::enableAutoResizeMode(const WebSize& minSize,
3039 const WebSize& maxSize) { 3039 const WebSize& maxSize) {
3040 m_shouldAutoResize = true; 3040 m_shouldAutoResize = true;
3041 m_minAutoSize = minSize; 3041 m_minAutoSize = minSize;
3042 m_maxAutoSize = maxSize; 3042 m_maxAutoSize = maxSize;
3043 configureAutoResizeMode(); 3043 configureAutoResizeMode();
3044 } 3044 }
3045 3045
(...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after
4204 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) 4204 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame())
4205 return nullptr; 4205 return nullptr;
4206 return focusedFrame; 4206 return focusedFrame;
4207 } 4207 }
4208 4208
4209 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { 4209 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const {
4210 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; 4210 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr;
4211 } 4211 }
4212 4212
4213 } // namespace blink 4213 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebImageDecoder.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698