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

Side by Side Diff: chrome/renderer/render_view.h

Issue 3174030: Making window.focus()/blur() work only when there is a user gesture. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: Created 10 years, 4 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
« no previous file with comments | « chrome/browser/views/tabs/dragged_tab_controller.cc ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_RENDERER_RENDER_VIEW_H_ 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_
6 #define CHROME_RENDERER_RENDER_VIEW_H_ 6 #define CHROME_RENDERER_RENDER_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 void UnregisterPluginDelegate(WebPluginDelegateProxy* delegate); 303 void UnregisterPluginDelegate(WebPluginDelegateProxy* delegate);
304 #endif 304 #endif
305 305
306 // IPC::Channel::Listener implementation ------------------------------------- 306 // IPC::Channel::Listener implementation -------------------------------------
307 307
308 virtual void OnMessageReceived(const IPC::Message& msg); 308 virtual void OnMessageReceived(const IPC::Message& msg);
309 309
310 // WebKit::WebWidgetClient implementation ------------------------------------ 310 // WebKit::WebWidgetClient implementation ------------------------------------
311 311
312 // Most methods are handled by RenderWidget. 312 // Most methods are handled by RenderWidget.
313 virtual void didFocus();
314 virtual void didBlur();
313 virtual void show(WebKit::WebNavigationPolicy policy); 315 virtual void show(WebKit::WebNavigationPolicy policy);
314 virtual void closeWidgetSoon(); 316 virtual void closeWidgetSoon();
315 virtual void runModal(); 317 virtual void runModal();
316 318
317 // WebKit::WebViewClient implementation -------------------------------------- 319 // WebKit::WebViewClient implementation --------------------------------------
318 320
319 virtual WebKit::WebView* createView( 321 virtual WebKit::WebView* createView(
320 WebKit::WebFrame* creator, 322 WebKit::WebFrame* creator,
321 const WebKit::WebWindowFeatures& features, 323 const WebKit::WebWindowFeatures& features,
322 const WebKit::WebString& frame_name); 324 const WebKit::WebString& frame_name);
(...skipping 985 matching lines...) Expand 10 before | Expand all | Expand 10 after
1308 // ADDING NEW DATA? Please see if it fits appropriately in one of the above 1310 // ADDING NEW DATA? Please see if it fits appropriately in one of the above
1309 // sections rather than throwing it randomly at the end. If you're adding a 1311 // sections rather than throwing it randomly at the end. If you're adding a
1310 // bunch of stuff, you should probably create a helper class and put your 1312 // bunch of stuff, you should probably create a helper class and put your
1311 // data and methods on that to avoid bloating RenderView more. 1313 // data and methods on that to avoid bloating RenderView more.
1312 // --------------------------------------------------------------------------- 1314 // ---------------------------------------------------------------------------
1313 1315
1314 DISALLOW_COPY_AND_ASSIGN(RenderView); 1316 DISALLOW_COPY_AND_ASSIGN(RenderView);
1315 }; 1317 };
1316 1318
1317 #endif // CHROME_RENDERER_RENDER_VIEW_H_ 1319 #endif // CHROME_RENDERER_RENDER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/views/tabs/dragged_tab_controller.cc ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698