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

Side by Side Diff: chrome/browser/tab_contents/interstitial_page.cc

Issue 668125: Basic DragImage implementation.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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) 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 #include "chrome/browser/tab_contents/interstitial_page.h" 5 #include "chrome/browser/tab_contents/interstitial_page.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/thread.h" 10 #include "base/thread.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 virtual void CreateNewWindow(int route_id); 89 virtual void CreateNewWindow(int route_id);
90 virtual void CreateNewWidget(int route_id, bool activatable); 90 virtual void CreateNewWidget(int route_id, bool activatable);
91 virtual void ShowCreatedWindow(int route_id, 91 virtual void ShowCreatedWindow(int route_id,
92 WindowOpenDisposition disposition, 92 WindowOpenDisposition disposition,
93 const gfx::Rect& initial_pos, 93 const gfx::Rect& initial_pos,
94 bool user_gesture); 94 bool user_gesture);
95 virtual void ShowCreatedWidget(int route_id, 95 virtual void ShowCreatedWidget(int route_id,
96 const gfx::Rect& initial_pos); 96 const gfx::Rect& initial_pos);
97 virtual void ShowContextMenu(const ContextMenuParams& params); 97 virtual void ShowContextMenu(const ContextMenuParams& params);
98 virtual void StartDragging(const WebDropData& drop_data, 98 virtual void StartDragging(const WebDropData& drop_data,
99 WebDragOperationsMask operations_allowed); 99 WebDragOperationsMask operations_allowed,
100 const SkBitmap& image,
101 const gfx::Point& image_offset);
100 virtual void UpdateDragCursor(WebDragOperation operation); 102 virtual void UpdateDragCursor(WebDragOperation operation);
101 virtual void GotFocus(); 103 virtual void GotFocus();
102 virtual void TakeFocus(bool reverse); 104 virtual void TakeFocus(bool reverse);
103 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, 105 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
104 bool* is_keyboard_shortcut); 106 bool* is_keyboard_shortcut);
105 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); 107 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event);
106 virtual void HandleMouseEvent(); 108 virtual void HandleMouseEvent();
107 virtual void HandleMouseLeave(); 109 virtual void HandleMouseLeave();
108 virtual void OnFindReply(int request_id, 110 virtual void OnFindReply(int request_id,
109 int number_of_matches, 111 int number_of_matches,
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 int route_id, const gfx::Rect& initial_pos) { 559 int route_id, const gfx::Rect& initial_pos) {
558 NOTREACHED() << "InterstitialPage does not support showing drop-downs yet."; 560 NOTREACHED() << "InterstitialPage does not support showing drop-downs yet.";
559 } 561 }
560 562
561 void InterstitialPage::InterstitialPageRVHViewDelegate::ShowContextMenu( 563 void InterstitialPage::InterstitialPageRVHViewDelegate::ShowContextMenu(
562 const ContextMenuParams& params) { 564 const ContextMenuParams& params) {
563 } 565 }
564 566
565 void InterstitialPage::InterstitialPageRVHViewDelegate::StartDragging( 567 void InterstitialPage::InterstitialPageRVHViewDelegate::StartDragging(
566 const WebDropData& drop_data, 568 const WebDropData& drop_data,
567 WebDragOperationsMask allowed_operations) { 569 WebDragOperationsMask allowed_operations,
570 const SkBitmap& image,
571 const gfx::Point& image_offset) {
568 NOTREACHED() << "InterstitialPage does not support dragging yet."; 572 NOTREACHED() << "InterstitialPage does not support dragging yet.";
569 } 573 }
570 574
571 void InterstitialPage::InterstitialPageRVHViewDelegate::UpdateDragCursor( 575 void InterstitialPage::InterstitialPageRVHViewDelegate::UpdateDragCursor(
572 WebDragOperation) { 576 WebDragOperation) {
573 NOTREACHED() << "InterstitialPage does not support dragging yet."; 577 NOTREACHED() << "InterstitialPage does not support dragging yet.";
574 } 578 }
575 579
576 void InterstitialPage::InterstitialPageRVHViewDelegate::GotFocus() { 580 void InterstitialPage::InterstitialPageRVHViewDelegate::GotFocus() {
577 } 581 }
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 } 615 }
612 616
613 void InterstitialPage::InterstitialPageRVHViewDelegate::OnFindReply( 617 void InterstitialPage::InterstitialPageRVHViewDelegate::OnFindReply(
614 int request_id, int number_of_matches, const gfx::Rect& selection_rect, 618 int request_id, int number_of_matches, const gfx::Rect& selection_rect,
615 int active_match_ordinal, bool final_update) { 619 int active_match_ordinal, bool final_update) {
616 } 620 }
617 621
618 int InterstitialPage::GetBrowserWindowID() const { 622 int InterstitialPage::GetBrowserWindowID() const {
619 return tab_->GetBrowserWindowID(); 623 return tab_->GetBrowserWindowID();
620 } 624 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host_delegate.h ('k') | chrome/browser/tab_contents/tab_contents_view_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698