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

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

Issue 1605143003: [UseZoomForDSF] Support drag&drop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 // Returns whether the current RenderProcessHost has read access to the files 353 // Returns whether the current RenderProcessHost has read access to the files
354 // reported in |state|. 354 // reported in |state|.
355 bool CanAccessFilesOfPageState(const PageState& state) const; 355 bool CanAccessFilesOfPageState(const PageState& state) const;
356 356
357 // Grants the current RenderProcessHost read access to any file listed in 357 // Grants the current RenderProcessHost read access to any file listed in
358 // |validated_state|. It is important that the PageState has been validated 358 // |validated_state|. It is important that the PageState has been validated
359 // upon receipt from the renderer process to prevent it from forging access to 359 // upon receipt from the renderer process to prevent it from forging access to
360 // files without the user's consent. 360 // files without the user's consent.
361 void GrantFileAccessFromPageState(const PageState& validated_state); 361 void GrantFileAccessFromPageState(const PageState& validated_state);
362 362
363 // Convers the dip to viewport coordinates.
364 gfx::Point convertDipToViewport(const gfx::Point& point);
dcheng 2016/01/20 22:48:11 This should be named ConvertDipToViewport()
oshima 2016/01/20 23:25:30 Done.
365
363 // The RenderWidgetHost. 366 // The RenderWidgetHost.
364 scoped_ptr<RenderWidgetHostImpl> render_widget_host_; 367 scoped_ptr<RenderWidgetHostImpl> render_widget_host_;
365 368
366 // The number of RenderFrameHosts which have a reference to this RVH. 369 // The number of RenderFrameHosts which have a reference to this RVH.
367 int frames_ref_count_; 370 int frames_ref_count_;
368 371
369 // Our delegate, which wants to know about changes in the RenderView. 372 // Our delegate, which wants to know about changes in the RenderView.
370 RenderViewHostDelegate* delegate_; 373 RenderViewHostDelegate* delegate_;
371 374
372 // The SiteInstance associated with this RenderViewHost. All pages drawn 375 // 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_; 434 bool render_view_ready_on_process_launch_;
432 435
433 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; 436 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_;
434 437
435 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 438 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
436 }; 439 };
437 440
438 } // namespace content 441 } // namespace content
439 442
440 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 443 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698