| Index: ppapi/tests/test_view.h
|
| diff --git a/ppapi/tests/test_view.h b/ppapi/tests/test_view.h
|
| index ff8b70a8aabd8cd7284f720e80eb563450556331..140d4cf7b5d16ce0fa8a3d6de9a7770fcce43039 100644
|
| --- a/ppapi/tests/test_view.h
|
| +++ b/ppapi/tests/test_view.h
|
| @@ -1,51 +1,51 @@
|
| -// Copyright (c) 2011 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.
|
| -
|
| -#ifndef PPAPI_TEST_TEST_VIEW_H_
|
| -#define PPAPI_TEST_TEST_VIEW_H_
|
| -
|
| -#include "ppapi/cpp/view.h"
|
| -#include "ppapi/tests/test_case.h"
|
| -
|
| -class TestView : public TestCase {
|
| - public:
|
| - TestView(TestingInstance* instance);
|
| -
|
| - virtual void DidChangeView(const pp::View& view);
|
| -
|
| - // TestCase implementation.
|
| - virtual bool Init();
|
| - virtual void RunTests(const std::string& test_filter);
|
| -
|
| - private:
|
| - // Waits until we get a view changed event. Note that the browser may give
|
| - // us any number of view changed events, so tests that use this should
|
| - // expect that there may be spurious events and handle them accordingly.
|
| - // Note also that view changed sequencing can change between different
|
| - // versions of WebKit.
|
| - //
|
| - // Returns true if we got a view changed, false if it timed out.
|
| - bool WaitUntilViewChanged();
|
| -
|
| - void QuitMessageLoop(int32_t result);
|
| -
|
| - std::string TestCreatedVisible();
|
| - std::string TestCreatedInvisible();
|
| - std::string TestPageHideShow();
|
| - std::string TestSizeChange();
|
| - std::string TestClipChange();
|
| -
|
| - pp::View last_view_;
|
| -
|
| - // DidChangeView stores the page visibility in this vector on each
|
| - // invocation so tests can check it.
|
| - std::vector<bool> page_visibility_log_;
|
| -
|
| - // Set to true to request that the next invocation of DidChangeView should
|
| - // post a quit to the message loop. DidChangeView will also reset the flag so
|
| - // this will only happen once.
|
| - bool post_quit_on_view_changed_;
|
| -};
|
| -
|
| -#endif // PPAPI_TEST_TEST_VIEW_H_
|
| +// Copyright (c) 2011 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.
|
| +
|
| +#ifndef PPAPI_TEST_TEST_VIEW_H_
|
| +#define PPAPI_TEST_TEST_VIEW_H_
|
| +
|
| +#include "ppapi/cpp/view.h"
|
| +#include "ppapi/tests/test_case.h"
|
| +
|
| +class TestView : public TestCase {
|
| + public:
|
| + TestView(TestingInstance* instance);
|
| +
|
| + virtual void DidChangeView(const pp::View& view);
|
| +
|
| + // TestCase implementation.
|
| + virtual bool Init();
|
| + virtual void RunTests(const std::string& test_filter);
|
| +
|
| + private:
|
| + // Waits until we get a view changed event. Note that the browser may give
|
| + // us any number of view changed events, so tests that use this should
|
| + // expect that there may be spurious events and handle them accordingly.
|
| + // Note also that view changed sequencing can change between different
|
| + // versions of WebKit.
|
| + //
|
| + // Returns true if we got a view changed, false if it timed out.
|
| + bool WaitUntilViewChanged();
|
| +
|
| + void QuitMessageLoop(int32_t result);
|
| +
|
| + std::string TestCreatedVisible();
|
| + std::string TestCreatedInvisible();
|
| + std::string TestPageHideShow();
|
| + std::string TestSizeChange();
|
| + std::string TestClipChange();
|
| +
|
| + pp::View last_view_;
|
| +
|
| + // DidChangeView stores the page visibility in this vector on each
|
| + // invocation so tests can check it.
|
| + std::vector<bool> page_visibility_log_;
|
| +
|
| + // Set to true to request that the next invocation of DidChangeView should
|
| + // post a quit to the message loop. DidChangeView will also reset the flag so
|
| + // this will only happen once.
|
| + bool post_quit_on_view_changed_;
|
| +};
|
| +
|
| +#endif // PPAPI_TEST_TEST_VIEW_H_
|
|
|