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

Side by Side Diff: content/renderer/render_view_impl.h

Issue 2485693003: Drag-and-drop: DragEnter, DragOver, DragLeave, DragDrop (Closed)
Patch Set: Rebased. More fixes. Created 4 years, 1 month 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 | « content/public/browser/render_widget_host.h ('k') | content/renderer/render_view_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_RENDERER_RENDER_VIEW_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 const std::string& GetAcceptLanguages() const override; 374 const std::string& GetAcceptLanguages() const override;
375 #if defined(OS_ANDROID) 375 #if defined(OS_ANDROID)
376 void UpdateBrowserControlsState(BrowserControlsState constraints, 376 void UpdateBrowserControlsState(BrowserControlsState constraints,
377 BrowserControlsState current, 377 BrowserControlsState current,
378 bool animate) override; 378 bool animate) override;
379 #endif 379 #endif
380 void ConvertViewportToWindowViaWidget(blink::WebRect* rect) override; 380 void ConvertViewportToWindowViaWidget(blink::WebRect* rect) override;
381 gfx::RectF ElementBoundsInWindow(const blink::WebElement& element) override; 381 gfx::RectF ElementBoundsInWindow(const blink::WebElement& element) override;
382 bool HasAddedInputHandler() const override; 382 bool HasAddedInputHandler() const override;
383 383
384 gfx::Point ConvertWindowPointToViewport(const gfx::Point& point);
385
386 bool uses_temporary_zoom_level() const { return uses_temporary_zoom_level_; } 384 bool uses_temporary_zoom_level() const { return uses_temporary_zoom_level_; }
387 385
388 // Please do not add your stuff randomly to the end here. If there is an 386 // Please do not add your stuff randomly to the end here. If there is an
389 // appropriate section, add it there. If not, there are some random functions 387 // appropriate section, add it there. If not, there are some random functions
390 // nearer to the top you can add it to. 388 // nearer to the top you can add it to.
391 389
392 protected: 390 protected:
393 // RenderWidget overrides: 391 // RenderWidget overrides:
394 blink::WebWidget* GetWebWidget() const override; 392 blink::WebWidget* GetWebWidget() const override;
395 void CloseForFrame() override; 393 void CloseForFrame() override;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 527
530 void OnShowContextMenu(ui::MenuSourceType source_type, 528 void OnShowContextMenu(ui::MenuSourceType source_type,
531 const gfx::Point& location); 529 const gfx::Point& location);
532 void OnDeterminePageLanguage(); 530 void OnDeterminePageLanguage();
533 void OnDisableScrollbarsForSmallWindows( 531 void OnDisableScrollbarsForSmallWindows(
534 const gfx::Size& disable_scrollbars_size_limit); 532 const gfx::Size& disable_scrollbars_size_limit);
535 void OnDragSourceEnded(const gfx::Point& client_point, 533 void OnDragSourceEnded(const gfx::Point& client_point,
536 const gfx::Point& screen_point, 534 const gfx::Point& screen_point,
537 blink::WebDragOperation drag_operation); 535 blink::WebDragOperation drag_operation);
538 void OnDragSourceSystemDragEnded(); 536 void OnDragSourceSystemDragEnded();
539 void OnDragTargetDrop(const DropData& drop_data,
540 const gfx::Point& client_pt,
541 const gfx::Point& screen_pt,
542 int key_modifiers);
543 // Real data that is dragged is not included at DragEnter time.
544 void OnDragTargetDragEnter(
545 const std::vector<DropData::Metadata>& drop_meta_data,
546 const gfx::Point& client_pt,
547 const gfx::Point& screen_pt,
548 blink::WebDragOperationsMask operations_allowed,
549 int key_modifiers);
550 void OnDragTargetDragLeave();
551 void OnDragTargetDragOver(const gfx::Point& client_pt,
552 const gfx::Point& screen_pt,
553 blink::WebDragOperationsMask operations_allowed,
554 int key_modifiers);
555 void OnEnablePreferredSizeChangedMode(); 537 void OnEnablePreferredSizeChangedMode();
556 void OnEnableAutoResize(const gfx::Size& min_size, const gfx::Size& max_size); 538 void OnEnableAutoResize(const gfx::Size& min_size, const gfx::Size& max_size);
557 void OnDisableAutoResize(const gfx::Size& new_size); 539 void OnDisableAutoResize(const gfx::Size& new_size);
558 void OnEnumerateDirectoryResponse(int id, 540 void OnEnumerateDirectoryResponse(int id,
559 const std::vector<base::FilePath>& paths); 541 const std::vector<base::FilePath>& paths);
560 void OnMediaPlayerActionAt(const gfx::Point& location, 542 void OnMediaPlayerActionAt(const gfx::Point& location,
561 const blink::WebMediaPlayerAction& action); 543 const blink::WebMediaPlayerAction& action);
562 void OnPluginActionAt(const gfx::Point& location, 544 void OnPluginActionAt(const gfx::Point& location,
563 const blink::WebPluginAction& action); 545 const blink::WebPluginAction& action);
564 void OnMoveOrResizeStarted(); 546 void OnMoveOrResizeStarted();
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 // use the Observer interface to filter IPC messages and receive frame change 843 // use the Observer interface to filter IPC messages and receive frame change
862 // notifications. 844 // notifications.
863 // --------------------------------------------------------------------------- 845 // ---------------------------------------------------------------------------
864 846
865 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 847 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
866 }; 848 };
867 849
868 } // namespace content 850 } // namespace content
869 851
870 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 852 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW
« no previous file with comments | « content/public/browser/render_widget_host.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698