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

Side by Side Diff: content/child/blink_platform_impl.cc

Issue 2835203005: Draw the text area resizer with drawing commands (Closed)
Patch Set: New baselines Created 3 years, 7 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/app/resources/README.txt ('k') | content/shell/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/child/blink_platform_impl.h" 5 #include "content/child/blink_platform_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 ui::SCALE_FACTOR_100P, false}, 535 ui::SCALE_FACTOR_100P, false},
536 {"mediaplayerSubtitlesIcon", IDR_MEDIAPLAYER_SUBTITLES_ICON, 536 {"mediaplayerSubtitlesIcon", IDR_MEDIAPLAYER_SUBTITLES_ICON,
537 ui::SCALE_FACTOR_100P, false}, 537 ui::SCALE_FACTOR_100P, false},
538 {"mediaplayerOverflowMenu", IDR_MEDIAPLAYER_OVERFLOW_MENU_ICON, 538 {"mediaplayerOverflowMenu", IDR_MEDIAPLAYER_OVERFLOW_MENU_ICON,
539 ui::SCALE_FACTOR_100P, false}, 539 ui::SCALE_FACTOR_100P, false},
540 {"mediaplayerDownloadIcon", IDR_MEDIAPLAYER_DOWNLOAD_ICON, 540 {"mediaplayerDownloadIcon", IDR_MEDIAPLAYER_DOWNLOAD_ICON,
541 ui::SCALE_FACTOR_100P, false}, 541 ui::SCALE_FACTOR_100P, false},
542 {"searchCancel", IDR_SEARCH_CANCEL, ui::SCALE_FACTOR_100P, false}, 542 {"searchCancel", IDR_SEARCH_CANCEL, ui::SCALE_FACTOR_100P, false},
543 {"searchCancelPressed", IDR_SEARCH_CANCEL_PRESSED, ui::SCALE_FACTOR_100P, 543 {"searchCancelPressed", IDR_SEARCH_CANCEL_PRESSED, ui::SCALE_FACTOR_100P,
544 false}, 544 false},
545 {"textAreaResizeCorner", IDR_TEXTAREA_RESIZER, ui::SCALE_FACTOR_100P,
546 false},
547 {"textAreaResizeCorner@2x", IDR_TEXTAREA_RESIZER, ui::SCALE_FACTOR_200P,
548 false},
549 {"generatePassword", IDR_PASSWORD_GENERATION_ICON, ui::SCALE_FACTOR_100P, 545 {"generatePassword", IDR_PASSWORD_GENERATION_ICON, ui::SCALE_FACTOR_100P,
550 false}, 546 false},
551 {"generatePasswordHover", IDR_PASSWORD_GENERATION_ICON_HOVER, 547 {"generatePasswordHover", IDR_PASSWORD_GENERATION_ICON_HOVER,
552 ui::SCALE_FACTOR_100P, false}, 548 ui::SCALE_FACTOR_100P, false},
553 {"html.css", IDR_UASTYLE_HTML_CSS, ui::SCALE_FACTOR_NONE, true}, 549 {"html.css", IDR_UASTYLE_HTML_CSS, ui::SCALE_FACTOR_NONE, true},
554 {"quirks.css", IDR_UASTYLE_QUIRKS_CSS, ui::SCALE_FACTOR_NONE, true}, 550 {"quirks.css", IDR_UASTYLE_QUIRKS_CSS, ui::SCALE_FACTOR_NONE, true},
555 {"view-source.css", IDR_UASTYLE_VIEW_SOURCE_CSS, ui::SCALE_FACTOR_NONE, 551 {"view-source.css", IDR_UASTYLE_VIEW_SOURCE_CSS, ui::SCALE_FACTOR_NONE,
556 true}, 552 true},
557 // Not limited to Android since it's used for mobile layouts in inspector. 553 // Not limited to Android since it's used for mobile layouts in inspector.
558 {"themeChromiumAndroid.css", IDR_UASTYLE_THEME_CHROMIUM_ANDROID_CSS, 554 {"themeChromiumAndroid.css", IDR_UASTYLE_THEME_CHROMIUM_ANDROID_CSS,
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 blink::WebFeaturePolicy* BlinkPlatformImpl::DuplicateFeaturePolicyWithOrigin( 844 blink::WebFeaturePolicy* BlinkPlatformImpl::DuplicateFeaturePolicyWithOrigin(
849 const blink::WebFeaturePolicy& policy, 845 const blink::WebFeaturePolicy& policy,
850 const blink::WebSecurityOrigin& new_origin) { 846 const blink::WebSecurityOrigin& new_origin) {
851 std::unique_ptr<FeaturePolicy> new_policy = 847 std::unique_ptr<FeaturePolicy> new_policy =
852 FeaturePolicy::CreateFromPolicyWithOrigin( 848 FeaturePolicy::CreateFromPolicyWithOrigin(
853 static_cast<const FeaturePolicy&>(policy), url::Origin(new_origin)); 849 static_cast<const FeaturePolicy&>(policy), url::Origin(new_origin));
854 return new_policy.release(); 850 return new_policy.release();
855 } 851 }
856 852
857 } // namespace content 853 } // namespace content
OLDNEW
« no previous file with comments | « content/app/resources/README.txt ('k') | content/shell/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698