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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.h

Issue 1703433002: Move DIP(WIndow) to Viewport conversion code for drag&drop from browser to renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | content/browser/renderer_host/render_view_host_impl.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 // Returns whether the current RenderProcessHost has read access to the files 351 // Returns whether the current RenderProcessHost has read access to the files
352 // reported in |state|. 352 // reported in |state|.
353 bool CanAccessFilesOfPageState(const PageState& state) const; 353 bool CanAccessFilesOfPageState(const PageState& state) const;
354 354
355 // Grants the current RenderProcessHost read access to any file listed in 355 // Grants the current RenderProcessHost read access to any file listed in
356 // |validated_state|. It is important that the PageState has been validated 356 // |validated_state|. It is important that the PageState has been validated
357 // upon receipt from the renderer process to prevent it from forging access to 357 // upon receipt from the renderer process to prevent it from forging access to
358 // files without the user's consent. 358 // files without the user's consent.
359 void GrantFileAccessFromPageState(const PageState& validated_state); 359 void GrantFileAccessFromPageState(const PageState& validated_state);
360 360
361 gfx::Point ConvertDIPToViewport(const gfx::Point& point);
362
363 // The RenderWidgetHost. 361 // The RenderWidgetHost.
364 scoped_ptr<RenderWidgetHostImpl> render_widget_host_; 362 scoped_ptr<RenderWidgetHostImpl> render_widget_host_;
365 363
366 // The number of RenderFrameHosts which have a reference to this RVH. 364 // The number of RenderFrameHosts which have a reference to this RVH.
367 int frames_ref_count_; 365 int frames_ref_count_;
368 366
369 // Our delegate, which wants to know about changes in the RenderView. 367 // Our delegate, which wants to know about changes in the RenderView.
370 RenderViewHostDelegate* delegate_; 368 RenderViewHostDelegate* delegate_;
371 369
372 // The SiteInstance associated with this RenderViewHost. All pages drawn 370 // The SiteInstance associated with this RenderViewHost. All pages drawn
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 bool render_view_ready_on_process_launch_; 429 bool render_view_ready_on_process_launch_;
432 430
433 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; 431 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_;
434 432
435 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 433 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
436 }; 434 };
437 435
438 } // namespace content 436 } // namespace content
439 437
440 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 438 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_view_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698