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

Side by Side Diff: third_party/WebKit/public/platform/Platform.h

Issue 1796293003: Image decode color: Push color profile from browser to renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: leave empty check Created 4 years, 5 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 | « third_party/WebKit/Source/web/WebViewImpl.cpp ('k') | ui/gfx/color_profile.h » ('j') | 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 // Resources ----------------------------------------------------------- 362 // Resources -----------------------------------------------------------
363 363
364 // Returns a blob of data corresponding to the named resource. 364 // Returns a blob of data corresponding to the named resource.
365 virtual WebData loadResource(const char* name) { return WebData(); } 365 virtual WebData loadResource(const char* name) { return WebData(); }
366 366
367 // Decodes the in-memory audio file data and returns the linear PCM audio da ta in the destinationBus. 367 // Decodes the in-memory audio file data and returns the linear PCM audio da ta in the destinationBus.
368 // A sample-rate conversion to sampleRate will occur if the file data is at a different sample-rate. 368 // A sample-rate conversion to sampleRate will occur if the file data is at a different sample-rate.
369 // Returns true on success. 369 // Returns true on success.
370 virtual bool loadAudioResource(WebAudioBus* destinationBus, const char* audi oFileData, size_t dataSize) { return false; } 370 virtual bool loadAudioResource(WebAudioBus* destinationBus, const char* audi oFileData, size_t dataSize) { return false; }
371 371
372 // Screen -------------------------------------------------------------
373
374 // Supplies the system monitor color profile.
375 virtual void screenColorProfile(WebVector<char>* profile) { }
376
377
378 // Scrollbar ---------------------------------------------------------- 372 // Scrollbar ----------------------------------------------------------
379 373
380 // Must return non-null. 374 // Must return non-null.
381 virtual WebScrollbarBehavior* scrollbarBehavior() { return nullptr; } 375 virtual WebScrollbarBehavior* scrollbarBehavior() { return nullptr; }
382 376
383 377
384 // Sudden Termination -------------------------------------------------- 378 // Sudden Termination --------------------------------------------------
385 379
386 // Disable/Enable sudden termination on a process level. When possible, it 380 // Disable/Enable sudden termination on a process level. When possible, it
387 // is preferable to disable sudden termination on a per-frame level via 381 // is preferable to disable sudden termination on a per-frame level via
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 protected: 599 protected:
606 Platform(); 600 Platform();
607 virtual ~Platform() { } 601 virtual ~Platform() { }
608 602
609 WebThread* m_mainThread; 603 WebThread* m_mainThread;
610 }; 604 };
611 605
612 } // namespace blink 606 } // namespace blink
613 607
614 #endif 608 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.cpp ('k') | ui/gfx/color_profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698