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

Side by Side Diff: components/web_view/test_frame_tree_delegate.h

Issue 1347023003: Rename frame classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge 2 trunk Created 5 years, 3 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_WEB_VIEW_TEST_FRAME_TREE_DELEGATE_H_ 5 #ifndef COMPONENTS_WEB_VIEW_TEST_FRAME_TREE_DELEGATE_H_
6 #define COMPONENTS_WEB_VIEW_TEST_FRAME_TREE_DELEGATE_H_ 6 #define COMPONENTS_WEB_VIEW_TEST_FRAME_TREE_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "components/web_view/frame_tree_delegate.h" 10 #include "components/web_view/frame_tree_delegate.h"
(...skipping 20 matching lines...) Expand all
31 Frame* WaitForCreateFrame(); 31 Frame* WaitForCreateFrame();
32 32
33 // Waits for DidDestroyFrame() to be called with |frame|. 33 // Waits for DidDestroyFrame() to be called with |frame|.
34 void WaitForDestroyFrame(Frame* frame); 34 void WaitForDestroyFrame(Frame* frame);
35 35
36 // Waits for OnViewEmbeddedInFrameDisconnected() to be called with |frame|. 36 // Waits for OnViewEmbeddedInFrameDisconnected() to be called with |frame|.
37 void WaitForFrameDisconnected(Frame* frame); 37 void WaitForFrameDisconnected(Frame* frame);
38 38
39 // TestFrameTreeDelegate: 39 // TestFrameTreeDelegate:
40 scoped_ptr<FrameUserData> CreateUserDataForNewFrame( 40 scoped_ptr<FrameUserData> CreateUserDataForNewFrame(
41 FrameTreeClientPtr frame_tree_client) override; 41 mojom::FrameClientPtr frame_client) override;
42 bool CanPostMessageEventToFrame(const Frame* source, 42 bool CanPostMessageEventToFrame(const Frame* source,
43 const Frame* target, 43 const Frame* target,
44 HTMLMessageEvent* event) override; 44 mojom::HTMLMessageEvent* event) override;
45 void LoadingStateChanged(bool loading, double progress) override; 45 void LoadingStateChanged(bool loading, double progress) override;
46 void TitleChanged(const mojo::String& title) override; 46 void TitleChanged(const mojo::String& title) override;
47 void NavigateTopLevel(Frame* source, mojo::URLRequestPtr request) override; 47 void NavigateTopLevel(Frame* source, mojo::URLRequestPtr request) override;
48 void CanNavigateFrame(Frame* target, 48 void CanNavigateFrame(Frame* target,
49 mojo::URLRequestPtr request, 49 mojo::URLRequestPtr request,
50 const CanNavigateFrameCallback& callback) override; 50 const CanNavigateFrameCallback& callback) override;
51 void DidStartNavigation(Frame* frame) override; 51 void DidStartNavigation(Frame* frame) override;
52 void DidCommitProvisionalLoad(Frame* frame) override; 52 void DidCommitProvisionalLoad(Frame* frame) override;
53 void DidCreateFrame(Frame* frame) override; 53 void DidCreateFrame(Frame* frame) override;
54 void DidDestroyFrame(Frame* frame) override; 54 void DidDestroyFrame(Frame* frame) override;
55 void OnViewEmbeddedInFrameDisconnected(Frame* frame) override; 55 void OnViewEmbeddedInFrameDisconnected(Frame* frame) override;
56 56
57 private: 57 private:
58 bool is_waiting() const { return run_loop_.get(); } 58 bool is_waiting() const { return run_loop_.get(); }
59 59
60 mojo::ApplicationImpl* app_; 60 mojo::ApplicationImpl* app_;
61 bool waiting_for_create_frame_; 61 bool waiting_for_create_frame_;
62 Frame* waiting_for_destroy_frame_; 62 Frame* waiting_for_destroy_frame_;
63 scoped_ptr<base::RunLoop> run_loop_; 63 scoped_ptr<base::RunLoop> run_loop_;
64 Frame* most_recent_frame_; 64 Frame* most_recent_frame_;
65 Frame* waiting_for_frame_disconnected_; 65 Frame* waiting_for_frame_disconnected_;
66 66
67 DISALLOW_COPY_AND_ASSIGN(TestFrameTreeDelegate); 67 DISALLOW_COPY_AND_ASSIGN(TestFrameTreeDelegate);
68 }; 68 };
69 69
70 } // namespace web_view 70 } // namespace web_view
71 71
72 #endif // COMPONENTS_WEB_VIEW_TEST_FRAME_TREE_DELEGATE_H_ 72 #endif // COMPONENTS_WEB_VIEW_TEST_FRAME_TREE_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/web_view/public/interfaces/frame_tree.mojom ('k') | components/web_view/test_frame_tree_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698