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

Side by Side Diff: chrome/browser/apps/web_view_interactive_browsertest.cc

Issue 178193005: Move render_view_context_menu.* related files out of tab_contents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: context_menu->renderer_context_menu for disambiguation Created 6 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "apps/app_window.h" 5 #include "apps/app_window.h"
6 #include "apps/app_window_registry.h" 6 #include "apps/app_window_registry.h"
7 #include "base/strings/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/app/chrome_command_ids.h" 9 #include "chrome/app/chrome_command_ids.h"
10 #include "chrome/browser/apps/app_browsertest_util.h" 10 #include "chrome/browser/apps/app_browsertest_util.h"
11 #include "chrome/browser/extensions/extension_test_message_listener.h" 11 #include "chrome/browser/extensions/extension_test_message_listener.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/tab_contents/render_view_context_menu_browsertest_util. h" 13 #include "chrome/browser/renderer_context_menu/render_view_context_menu_browsert est_util.h"
14 #include "chrome/browser/tab_contents/render_view_context_menu_test_util.h" 14 #include "chrome/browser/renderer_context_menu/render_view_context_menu_test_uti l.h"
15 #include "chrome/test/base/interactive_test_utils.h" 15 #include "chrome/test/base/interactive_test_utils.h"
16 #include "chrome/test/base/test_launcher_utils.h" 16 #include "chrome/test/base/test_launcher_utils.h"
17 #include "chrome/test/base/ui_test_utils.h" 17 #include "chrome/test/base/ui_test_utils.h"
18 #include "content/public/browser/notification_service.h" 18 #include "content/public/browser/notification_service.h"
19 #include "content/public/browser/render_process_host.h" 19 #include "content/public/browser/render_process_host.h"
20 #include "content/public/browser/render_view_host.h" 20 #include "content/public/browser/render_view_host.h"
21 #include "content/public/browser/render_widget_host_view.h" 21 #include "content/public/browser/render_widget_host_view.h"
22 #include "content/public/browser/web_contents.h" 22 #include "content/public/browser/web_contents.h"
23 #include "content/public/browser/web_contents_view.h" 23 #include "content/public/browser/web_contents_view.h"
24 #include "content/public/common/content_switches.h" 24 #include "content/public/common/content_switches.h"
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 787
788 // Now verify that the selection text propagates properly to RWHV. 788 // Now verify that the selection text propagates properly to RWHV.
789 content::RenderWidgetHostView* guest_rwhv = 789 content::RenderWidgetHostView* guest_rwhv =
790 guest_web_contents()->GetRenderWidgetHostView(); 790 guest_web_contents()->GetRenderWidgetHostView();
791 ASSERT_TRUE(guest_rwhv); 791 ASSERT_TRUE(guest_rwhv);
792 std::string selected_text = base::UTF16ToUTF8(guest_rwhv->GetSelectedText()); 792 std::string selected_text = base::UTF16ToUTF8(guest_rwhv->GetSelectedText());
793 ASSERT_TRUE(selected_text.size() >= 10u); 793 ASSERT_TRUE(selected_text.size() >= 10u);
794 ASSERT_EQ("AAAAAAAAAA", selected_text.substr(0, 10)); 794 ASSERT_EQ("AAAAAAAAAA", selected_text.substr(0, 10));
795 } 795 }
796 #endif 796 #endif
OLDNEW
« no previous file with comments | « chrome/browser/apps/app_browsertest.cc ('k') | chrome/browser/custom_handlers/protocol_handler_registry_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698