| Index: Source/web/WebPageOverlay.cpp
|
| diff --git a/Source/web/WebPageOverlay.cpp b/Source/web/WebPageOverlay.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7d3260bca3e31c95ca5db44259068904d5c3b692
|
| --- /dev/null
|
| +++ b/Source/web/WebPageOverlay.cpp
|
| @@ -0,0 +1,30 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "config.h"
|
| +#include "public/web/WebPageOverlay.h"
|
| +
|
| +#include "public/platform/WebSize.h"
|
| +#include "public/web/WebGraphicsContext.h"
|
| +#include "third_party/skia/include/core/SkCanvas.h"
|
| +#include "third_party/skia/include/core/SkRect.h"
|
| +
|
| +namespace blink {
|
| +
|
| +void WebPageOverlay::paintPageOverlay(WebGraphicsContext* context, const WebSize& webViewSize)
|
| +{
|
| + WebFloatRect rect(0, 0, webViewSize.width, webViewSize.height);
|
| + WebCanvas* canvas = context->beginDrawing(rect);
|
| + int saveCount = canvas->save();
|
| + canvas->clipRect(SkRect::MakeWH(webViewSize.width, webViewSize.height));
|
| + paintPageOverlay(canvas);
|
| + canvas->restoreToCount(saveCount);
|
| + context->endDrawing();
|
| +}
|
| +
|
| +void WebPageOverlay::paintPageOverlay(WebCanvas*)
|
| +{
|
| +}
|
| +
|
| +} // namespace blink
|
|
|