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

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

Issue 2908933002: Make PageSizeType an enum class. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleRareNonInheritedData.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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 1428 matching lines...) Expand 10 before | Expand all | Expand 10 after
1439 if (!plugin_container || !plugin_container->SupportsPaginatedPrint()) 1439 if (!plugin_container || !plugin_container->SupportsPaginatedPrint())
1440 return false; 1440 return false;
1441 1441
1442 return plugin_container->GetPrintPresetOptionsFromDocument(preset_options); 1442 return plugin_container->GetPrintPresetOptionsFromDocument(preset_options);
1443 } 1443 }
1444 1444
1445 bool WebLocalFrameImpl::HasCustomPageSizeStyle(int page_index) { 1445 bool WebLocalFrameImpl::HasCustomPageSizeStyle(int page_index) {
1446 return GetFrame() 1446 return GetFrame()
1447 ->GetDocument() 1447 ->GetDocument()
1448 ->StyleForPage(page_index) 1448 ->StyleForPage(page_index)
1449 ->GetPageSizeType() != PAGE_SIZE_AUTO; 1449 ->GetPageSizeType() != PageSizeType::kAuto;
1450 } 1450 }
1451 1451
1452 bool WebLocalFrameImpl::IsPageBoxVisible(int page_index) { 1452 bool WebLocalFrameImpl::IsPageBoxVisible(int page_index) {
1453 return GetFrame()->GetDocument()->IsPageBoxVisible(page_index); 1453 return GetFrame()->GetDocument()->IsPageBoxVisible(page_index);
1454 } 1454 }
1455 1455
1456 void WebLocalFrameImpl::PageSizeAndMarginsInPixels(int page_index, 1456 void WebLocalFrameImpl::PageSizeAndMarginsInPixels(int page_index,
1457 WebDoubleSize& page_size, 1457 WebDoubleSize& page_size,
1458 int& margin_top, 1458 int& margin_top,
1459 int& margin_right, 1459 int& margin_right,
(...skipping 1122 matching lines...) Expand 10 before | Expand all | Expand 10 after
2582 TextCheckerClient& WebLocalFrameImpl::GetTextCheckerClient() const { 2582 TextCheckerClient& WebLocalFrameImpl::GetTextCheckerClient() const {
2583 return *text_checker_client_; 2583 return *text_checker_client_;
2584 } 2584 }
2585 2585
2586 void WebLocalFrameImpl::SetTextCheckClient( 2586 void WebLocalFrameImpl::SetTextCheckClient(
2587 WebTextCheckClient* text_check_client) { 2587 WebTextCheckClient* text_check_client) {
2588 text_check_client_ = text_check_client; 2588 text_check_client_ = text_check_client;
2589 } 2589 }
2590 2590
2591 } // namespace blink 2591 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleRareNonInheritedData.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698