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

Side by Side Diff: components/test_runner/test_runner.h

Issue 2587823003: Allow test runner to run a callback when finishing a spellcheck request (Closed)
Patch Set: fix typo... 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
« no previous file with comments | « components/test_runner/spell_check_client.cc ('k') | components/test_runner/test_runner.cc » ('j') | 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 COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_
6 #define COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ 6 #define COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <deque> 10 #include <deque>
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 // will return true and start tracking |frame| as the top-loading-frame. 147 // will return true and start tracking |frame| as the top-loading-frame.
148 bool tryToSetTopLoadingFrame(blink::WebFrame* frame); 148 bool tryToSetTopLoadingFrame(blink::WebFrame* frame);
149 149
150 // To be called when |frame| finishes loading - TestRunner will check if 150 // To be called when |frame| finishes loading - TestRunner will check if
151 // |frame| is currently tracked as the top-loading-frame, and if yes, then it 151 // |frame| is currently tracked as the top-loading-frame, and if yes, then it
152 // will return true, stop top-loading-frame tracking, and potentially finish 152 // will return true, stop top-loading-frame tracking, and potentially finish
153 // the test (unless testRunner.waitUntilDone() was called and/or there are 153 // the test (unless testRunner.waitUntilDone() was called and/or there are
154 // pending load requests in WorkQueue). 154 // pending load requests in WorkQueue).
155 bool tryToClearTopLoadingFrame(blink::WebFrame*); 155 bool tryToClearTopLoadingFrame(blink::WebFrame*);
156 156
157 blink::WebFrame* mainFrame() const;
157 blink::WebFrame* topLoadingFrame() const; 158 blink::WebFrame* topLoadingFrame() const;
158 void policyDelegateDone(); 159 void policyDelegateDone();
159 bool policyDelegateEnabled() const; 160 bool policyDelegateEnabled() const;
160 bool policyDelegateIsPermissive() const; 161 bool policyDelegateIsPermissive() const;
161 bool policyDelegateShouldNotifyDone() const; 162 bool policyDelegateShouldNotifyDone() const;
162 void setToolTipText(const blink::WebString&); 163 void setToolTipText(const blink::WebString&);
163 void setDragImage(const blink::WebImage& drag_image); 164 void setDragImage(const blink::WebImage& drag_image);
164 bool shouldDumpNavigationPolicy() const; 165 bool shouldDumpNavigationPolicy() const;
165 166
166 midi::mojom::Result midiAccessorResult(); 167 midi::mojom::Result midiAccessorResult();
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 blink::WebEffectiveConnectionType effective_connection_type_; 659 blink::WebEffectiveConnectionType effective_connection_type_;
659 660
660 base::WeakPtrFactory<TestRunner> weak_factory_; 661 base::WeakPtrFactory<TestRunner> weak_factory_;
661 662
662 DISALLOW_COPY_AND_ASSIGN(TestRunner); 663 DISALLOW_COPY_AND_ASSIGN(TestRunner);
663 }; 664 };
664 665
665 } // namespace test_runner 666 } // namespace test_runner
666 667
667 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ 668 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_
OLDNEW
« no previous file with comments | « components/test_runner/spell_check_client.cc ('k') | components/test_runner/test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698