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

Side by Side Diff: third_party/WebKit/Source/web/tests/sim/SimPage.cpp

Issue 2521043003: Replace LayoutTests/paint/invalidation/text-selection-focus.html with a SimTest. (Closed)
Patch Set: copyrights. 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
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "web/tests/sim/SimPage.h"
6
7 #include "core/page/FocusController.h"
8 #include "core/page/Page.h"
9
10 namespace blink {
11
12 SimPage::SimPage() : m_page(nullptr) {}
13
14 SimPage::~SimPage() {}
15
16 void SimPage::setPage(Page* page) {
17 m_page = page;
18 }
19
20 void SimPage::setFocused(bool value) {
21 m_page->focusController().setFocused(value);
22 }
23
24 bool SimPage::isFocused() const {
25 return m_page->focusController().isFocused();
26 }
27
28 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698