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

Side by Side Diff: sky/engine/core/testing/DummyPageHolder.cpp

Issue 640143004: Remove context menus. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/engine/core/page/TouchAdjustment.cpp ('k') | sky/engine/platform/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013, Google Inc. All rights reserved. 2 * Copyright (c) 2013, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 DummyPageHolder::DummyPageHolder( 50 DummyPageHolder::DummyPageHolder(
51 const IntSize& initialViewSize, 51 const IntSize& initialViewSize,
52 Page::PageClients* pageClients, 52 Page::PageClients* pageClients,
53 PassOwnPtr<FrameLoaderClient> frameLoaderClient) 53 PassOwnPtr<FrameLoaderClient> frameLoaderClient)
54 { 54 {
55 if (!pageClients) { 55 if (!pageClients) {
56 fillWithEmptyClients(m_pageClients); 56 fillWithEmptyClients(m_pageClients);
57 } else { 57 } else {
58 m_pageClients.chromeClient = pageClients->chromeClient; 58 m_pageClients.chromeClient = pageClients->chromeClient;
59 m_pageClients.contextMenuClient = pageClients->contextMenuClient;
60 m_pageClients.editorClient = pageClients->editorClient; 59 m_pageClients.editorClient = pageClients->editorClient;
61 m_pageClients.spellCheckerClient = pageClients->spellCheckerClient; 60 m_pageClients.spellCheckerClient = pageClients->spellCheckerClient;
62 } 61 }
63 m_page = adoptPtrWillBeNoop(new Page(m_pageClients)); 62 m_page = adoptPtrWillBeNoop(new Page(m_pageClients));
64 63
65 // FIXME(sky): Delete the tests that use DummyPageHolder since 64 // FIXME(sky): Delete the tests that use DummyPageHolder since
66 // they no longer work and we're not running them. 65 // they no longer work and we're not running them.
67 66
68 // Settings& settings = m_page->settings(); 67 // Settings& settings = m_page->settings();
69 // FIXME: http://crbug.com/363843. This needs to find a better way to 68 // FIXME: http://crbug.com/363843. This needs to find a better way to
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 { 101 {
103 return *m_frame->view(); 102 return *m_frame->view();
104 } 103 }
105 104
106 Document& DummyPageHolder::document() const 105 Document& DummyPageHolder::document() const
107 { 106 {
108 return *m_frame->domWindow()->document(); 107 return *m_frame->domWindow()->document();
109 } 108 }
110 109
111 } // namespace blink 110 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/page/TouchAdjustment.cpp ('k') | sky/engine/platform/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698