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

Side by Side Diff: ppapi/tests/test_flash_fullscreen_for_browser_ui.h

Issue 1097393007: Update {virtual,override} to follow C++11 style in ppapi. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split off one file into separate review. Created 5 years, 8 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 | « ppapi/shared_impl/var_tracker_unittest.cc ('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 // 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 #ifndef PPAPI_TESTS_TEST_FLASH_FULLSCREEN_FOR_BROWSER_UI_H_ 5 #ifndef PPAPI_TESTS_TEST_FLASH_FULLSCREEN_FOR_BROWSER_UI_H_
6 #define PPAPI_TESTS_TEST_FLASH_FULLSCREEN_FOR_BROWSER_UI_H_ 6 #define PPAPI_TESTS_TEST_FLASH_FULLSCREEN_FOR_BROWSER_UI_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ppapi/cpp/compositor.h" 10 #include "ppapi/cpp/compositor.h"
(...skipping 11 matching lines...) Expand all
22 // chrome/browser/ui/exclusive_access/ 22 // chrome/browser/ui/exclusive_access/
23 // flash_fullscreen_interactive_browsertest.cc. 23 // flash_fullscreen_interactive_browsertest.cc.
24 // 24 //
25 // At start, this simulated Flash plugin will enter fullscreen and paint a green 25 // At start, this simulated Flash plugin will enter fullscreen and paint a green
26 // color fill. From there, it will respond to mouse clicks or key presses by 26 // color fill. From there, it will respond to mouse clicks or key presses by
27 // toggling its fill color between red and blue. The browser test reads these 27 // toggling its fill color between red and blue. The browser test reads these
28 // color changes to detect the desired behavior. 28 // color changes to detect the desired behavior.
29 class TestFlashFullscreenForBrowserUI : public TestCase { 29 class TestFlashFullscreenForBrowserUI : public TestCase {
30 public: 30 public:
31 explicit TestFlashFullscreenForBrowserUI(TestingInstance* instance); 31 explicit TestFlashFullscreenForBrowserUI(TestingInstance* instance);
32 virtual ~TestFlashFullscreenForBrowserUI(); 32 ~TestFlashFullscreenForBrowserUI() override;
33 33
34 // TestCase implementation. 34 // TestCase implementation.
35 virtual bool Init() override; 35 bool Init() override;
36 virtual void RunTests(const std::string& filter) override; 36 void RunTests(const std::string& filter) override;
37 virtual void DidChangeView(const pp::View& view) override; 37 void DidChangeView(const pp::View& view) override;
38 virtual bool HandleInputEvent(const pp::InputEvent& event) override; 38 bool HandleInputEvent(const pp::InputEvent& event) override;
39 39
40 private: 40 private:
41 std::string TestEnterFullscreen(); 41 std::string TestEnterFullscreen();
42 void Paint(int32_t last_compositor_result); 42 void Paint(int32_t last_compositor_result);
43 43
44 pp::FlashFullscreen screen_mode_; 44 pp::FlashFullscreen screen_mode_;
45 NestedEvent view_change_event_; 45 NestedEvent view_change_event_;
46 46
47 pp::Compositor compositor_; 47 pp::Compositor compositor_;
48 pp::Size layer_size_; 48 pp::Size layer_size_;
49 pp::CompositorLayer color_layer_; 49 pp::CompositorLayer color_layer_;
50 50
51 int num_trigger_events_; 51 int num_trigger_events_;
52 52
53 pp::CompletionCallbackFactory<TestFlashFullscreenForBrowserUI> 53 pp::CompletionCallbackFactory<TestFlashFullscreenForBrowserUI>
54 callback_factory_; 54 callback_factory_;
55 }; 55 };
56 56
57 #endif // PPAPI_TESTS_TEST_FLASH_FULLSCREEN_FOR_BROWSER_UI_H_ 57 #endif // PPAPI_TESTS_TEST_FLASH_FULLSCREEN_FOR_BROWSER_UI_H_
OLDNEW
« no previous file with comments | « ppapi/shared_impl/var_tracker_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698