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

Side by Side Diff: chrome/browser/plugin_process_host.cc

Issue 18637: More speedup of scrolling when many windowed plugins in a page. Scrolling is... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 'spell Created 11 years, 11 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/browser/plugin_process_host.h" 5 #include "chrome/browser/plugin_process_host.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 21 matching lines...) Expand all
32 #include "chrome/common/logging_chrome.h" 32 #include "chrome/common/logging_chrome.h"
33 #include "chrome/common/notification_service.h" 33 #include "chrome/common/notification_service.h"
34 #include "chrome/common/plugin_messages.h" 34 #include "chrome/common/plugin_messages.h"
35 #include "chrome/common/process_watcher.h" 35 #include "chrome/common/process_watcher.h"
36 #include "chrome/common/render_messages.h" 36 #include "chrome/common/render_messages.h"
37 #include "chrome/common/win_util.h" 37 #include "chrome/common/win_util.h"
38 #include "net/base/cookie_monster.h" 38 #include "net/base/cookie_monster.h"
39 #include "net/proxy/proxy_service.h" 39 #include "net/proxy/proxy_service.h"
40 #include "net/url_request/url_request.h" 40 #include "net/url_request/url_request.h"
41 #include "sandbox/src/sandbox.h" 41 #include "sandbox/src/sandbox.h"
42 #include "webkit/glue/plugins/plugin_constants_win.h"
42 43
43 static const char kDefaultPluginFinderURL[] = 44 static const char kDefaultPluginFinderURL[] =
44 "http://dl.google.com/chrome/plugins/plugins2.xml"; 45 "http://dl.google.com/chrome/plugins/plugins2.xml";
45 46
46 // The NotificationTask is used to notify about plugin process connection/ 47 // The NotificationTask is used to notify about plugin process connection/
47 // disconnection. It is needed because the notifications in the 48 // disconnection. It is needed because the notifications in the
48 // NotificationService must happen in the main thread. 49 // NotificationService must happen in the main thread.
49 class PluginNotificationTask : public Task { 50 class PluginNotificationTask : public Task {
50 public: 51 public:
51 PluginNotificationTask(NotificationType notification_type, 52 PluginNotificationTask(NotificationType notification_type,
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 wcex.cbSize = sizeof(WNDCLASSEX); 383 wcex.cbSize = sizeof(WNDCLASSEX);
383 wcex.style = CS_DBLCLKS; 384 wcex.style = CS_DBLCLKS;
384 wcex.lpfnWndProc = DefWindowProc; 385 wcex.lpfnWndProc = DefWindowProc;
385 wcex.cbClsExtra = 0; 386 wcex.cbClsExtra = 0;
386 wcex.cbWndExtra = 0; 387 wcex.cbWndExtra = 0;
387 wcex.hInstance = GetModuleHandle(NULL); 388 wcex.hInstance = GetModuleHandle(NULL);
388 wcex.hIcon = 0; 389 wcex.hIcon = 0;
389 wcex.hCursor = 0; 390 wcex.hCursor = 0;
390 wcex.hbrBackground = reinterpret_cast<HBRUSH>(COLOR_WINDOW+1); 391 wcex.hbrBackground = reinterpret_cast<HBRUSH>(COLOR_WINDOW+1);
391 wcex.lpszMenuName = 0; 392 wcex.lpszMenuName = 0;
392 wcex.lpszClassName = L"NativeWindowClassWrapper"; 393 wcex.lpszClassName = kWrapperNativeWindowClassName;
393 wcex.hIconSm = 0; 394 wcex.hIconSm = 0;
394 window_class = RegisterClassEx(&wcex); 395 window_class = RegisterClassEx(&wcex);
395 } 396 }
396 397
397 HWND window = CreateWindowEx( 398 HWND window = CreateWindowEx(
398 WS_EX_LEFT | WS_EX_LTRREADING | WS_EX_RIGHTSCROLLBAR, 399 WS_EX_LEFT | WS_EX_LTRREADING | WS_EX_RIGHTSCROLLBAR,
399 MAKEINTATOM(window_class), 0, 400 MAKEINTATOM(window_class), 0,
400 WS_CHILD | WS_CLIPCHILDREN | WS_CLIPSIBLINGS, 401 WS_CHILD | WS_CLIPCHILDREN | WS_CLIPSIBLINGS,
401 0, 0, 0, 0, parent_, 0, GetModuleHandle(NULL), 0); 402 0, 0, 0, 0, parent_, 0, GetModuleHandle(NULL), 0);
402 403
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
931 void PluginProcessHost::OnDestroyWindow(HWND window) { 932 void PluginProcessHost::OnDestroyWindow(HWND window) {
932 plugin_service_->main_message_loop()->PostTask(FROM_HERE, 933 plugin_service_->main_message_loop()->PostTask(FROM_HERE,
933 new DestroyWindowTask(window)); 934 new DestroyWindowTask(window));
934 } 935 }
935 936
936 void PluginProcessHost::Shutdown() { 937 void PluginProcessHost::Shutdown() {
937 938
938 Send(new PluginProcessMsg_BrowserShutdown); 939 Send(new PluginProcessMsg_BrowserShutdown);
939 } 940 }
940 941
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/render_widget_host.cc » ('j') | chrome/browser/render_widget_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698