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

Side by Side Diff: chrome/renderer/blocked_plugin.cc

Issue 8294007: Get rid of view_messages.h includes in chrome\renderer. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/renderer/blocked_plugin.h" 5 #include "chrome/renderer/blocked_plugin.h"
6 6
7 #include "base/string_piece.h" 7 #include "base/string_piece.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/common/jstemplate_builder.h" 10 #include "chrome/common/jstemplate_builder.h"
11 #include "chrome/common/render_messages.h" 11 #include "chrome/common/render_messages.h"
12 #include "chrome/renderer/plugin_uma.h" 12 #include "chrome/renderer/plugin_uma.h"
13 #include "content/common/view_messages.h"
14 #include "content/public/renderer/render_thread.h" 13 #include "content/public/renderer/render_thread.h"
15 #include "content/public/renderer/render_view.h" 14 #include "content/public/renderer/render_view.h"
16 #include "grit/generated_resources.h" 15 #include "grit/generated_resources.h"
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebContextMenuData.h" 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebContextMenuData.h"
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebData.h" 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebData.h"
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h"
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMenuItemInfo.h" 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMenuItemInfo.h"
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 element = parent.toConst<WebElement>(); 290 element = parent.toConst<WebElement>();
292 if (element.hasAttribute("style")) { 291 if (element.hasAttribute("style")) {
293 WebString style_str = element.getAttribute("style"); 292 WebString style_str = element.getAttribute("style");
294 if (width_regex.match(style_str) >= 0 && 293 if (width_regex.match(style_str) >= 0 &&
295 height_regex.match(style_str) >= 0) 294 height_regex.match(style_str) >= 0)
296 element.setAttribute("style", "display: none;"); 295 element.setAttribute("style", "display: none;");
297 } 296 }
298 } 297 }
299 } 298 }
300 } 299 }
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/chrome_render_process_observer.cc » ('j') | chrome/renderer/page_click_tracker.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698