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

Side by Side Diff: content/browser/renderer_host/render_view_host.cc

Issue 7635011: Pipe "is pinned to left/right", "has horizontal/vertical scrollbar", (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: rebase Created 9 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/renderer_host/render_view_host.h ('k') | content/common/view_messages.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "content/browser/renderer_host/render_view_host.h" 5 #include "content/browser/renderer_host/render_view_host.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 IPC_MESSAGE_HANDLER(ViewHostMsg_DidChangeLoadProgress, 685 IPC_MESSAGE_HANDLER(ViewHostMsg_DidChangeLoadProgress,
686 OnMsgDidChangeLoadProgress) 686 OnMsgDidChangeLoadProgress)
687 IPC_MESSAGE_HANDLER(ViewHostMsg_DocumentAvailableInMainFrame, 687 IPC_MESSAGE_HANDLER(ViewHostMsg_DocumentAvailableInMainFrame,
688 OnMsgDocumentAvailableInMainFrame) 688 OnMsgDocumentAvailableInMainFrame)
689 IPC_MESSAGE_HANDLER(ViewHostMsg_DocumentOnLoadCompletedInMainFrame, 689 IPC_MESSAGE_HANDLER(ViewHostMsg_DocumentOnLoadCompletedInMainFrame,
690 OnMsgDocumentOnLoadCompletedInMainFrame) 690 OnMsgDocumentOnLoadCompletedInMainFrame)
691 IPC_MESSAGE_HANDLER(ViewHostMsg_ContextMenu, OnMsgContextMenu) 691 IPC_MESSAGE_HANDLER(ViewHostMsg_ContextMenu, OnMsgContextMenu)
692 IPC_MESSAGE_HANDLER(ViewHostMsg_OpenURL, OnMsgOpenURL) 692 IPC_MESSAGE_HANDLER(ViewHostMsg_OpenURL, OnMsgOpenURL)
693 IPC_MESSAGE_HANDLER(ViewHostMsg_DidContentsPreferredSizeChange, 693 IPC_MESSAGE_HANDLER(ViewHostMsg_DidContentsPreferredSizeChange,
694 OnMsgDidContentsPreferredSizeChange) 694 OnMsgDidContentsPreferredSizeChange)
695 IPC_MESSAGE_HANDLER(ViewHostMsg_DidChangeScrollbarsForMainFrame,
696 OnMsgDidChangeScrollbarsForMainFrame)
697 IPC_MESSAGE_HANDLER(ViewHostMsg_DidChangeScrollOffsetPinningForMainFrame,
698 OnMsgDidChangeScrollOffsetPinningForMainFrame)
699 IPC_MESSAGE_HANDLER(ViewHostMsg_DidChangeNumWheelEvents,
700 OnMsgDidChangeNumWheelEvents)
695 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunJavaScriptMessage, 701 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunJavaScriptMessage,
696 OnMsgRunJavaScriptMessage) 702 OnMsgRunJavaScriptMessage)
697 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunBeforeUnloadConfirm, 703 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunBeforeUnloadConfirm,
698 OnMsgRunBeforeUnloadConfirm) 704 OnMsgRunBeforeUnloadConfirm)
699 IPC_MESSAGE_HANDLER(DragHostMsg_StartDragging, OnMsgStartDragging) 705 IPC_MESSAGE_HANDLER(DragHostMsg_StartDragging, OnMsgStartDragging)
700 IPC_MESSAGE_HANDLER(DragHostMsg_UpdateDragCursor, OnUpdateDragCursor) 706 IPC_MESSAGE_HANDLER(DragHostMsg_UpdateDragCursor, OnUpdateDragCursor)
701 IPC_MESSAGE_HANDLER(DragHostMsg_TargetDrop_ACK, OnTargetDropACK) 707 IPC_MESSAGE_HANDLER(DragHostMsg_TargetDrop_ACK, OnTargetDropACK)
702 IPC_MESSAGE_HANDLER(ViewHostMsg_TakeFocus, OnTakeFocus) 708 IPC_MESSAGE_HANDLER(ViewHostMsg_TakeFocus, OnTakeFocus)
703 IPC_MESSAGE_HANDLER(ViewHostMsg_AddMessageToConsole, OnAddMessageToConsole) 709 IPC_MESSAGE_HANDLER(ViewHostMsg_AddMessageToConsole, OnAddMessageToConsole)
704 IPC_MESSAGE_HANDLER(ViewHostMsg_ShouldClose_ACK, OnMsgShouldCloseACK) 710 IPC_MESSAGE_HANDLER(ViewHostMsg_ShouldClose_ACK, OnMsgShouldCloseACK)
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
994 } 1000 }
995 1001
996 void RenderViewHost::OnMsgDidContentsPreferredSizeChange( 1002 void RenderViewHost::OnMsgDidContentsPreferredSizeChange(
997 const gfx::Size& new_size) { 1003 const gfx::Size& new_size) {
998 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); 1004 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate();
999 if (!view) 1005 if (!view)
1000 return; 1006 return;
1001 view->UpdatePreferredSize(new_size); 1007 view->UpdatePreferredSize(new_size);
1002 } 1008 }
1003 1009
1010 void RenderViewHost::OnMsgDidChangeScrollbarsForMainFrame(
1011 bool has_horizontal_scrollbar, bool has_vertical_scrollbar) {
1012 // TODO(thakis): Implement, http://crbug.com/90228
1013 }
1014
1015 void RenderViewHost::OnMsgDidChangeScrollOffsetPinningForMainFrame(
1016 bool is_pinned_to_left, bool is_pinned_to_right) {
1017 // TODO(thakis): Implement, http://crbug.com/90228
1018 }
1019
1020 void RenderViewHost::OnMsgDidChangeNumWheelEvents(int count) {
1021 // TODO(thakis): Implement, http://crbug.com/90228
1022 }
1023
1004 void RenderViewHost::OnMsgSelectionChanged(const std::string& text, 1024 void RenderViewHost::OnMsgSelectionChanged(const std::string& text,
1005 const ui::Range& range, 1025 const ui::Range& range,
1006 const gfx::Point& start, 1026 const gfx::Point& start,
1007 const gfx::Point& end) { 1027 const gfx::Point& end) {
1008 if (view()) 1028 if (view())
1009 view()->SelectionChanged(text, range, start, end); 1029 view()->SelectionChanged(text, range, start, end);
1010 } 1030 }
1011 1031
1012 void RenderViewHost::OnMsgRunJavaScriptMessage( 1032 void RenderViewHost::OnMsgRunJavaScriptMessage(
1013 const string16& message, 1033 const string16& message,
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
1334 if (view) { 1354 if (view) {
1335 view->ShowPopupMenu(params.bounds, 1355 view->ShowPopupMenu(params.bounds,
1336 params.item_height, 1356 params.item_height,
1337 params.item_font_size, 1357 params.item_font_size,
1338 params.selected_item, 1358 params.selected_item,
1339 params.popup_items, 1359 params.popup_items,
1340 params.right_aligned); 1360 params.right_aligned);
1341 } 1361 }
1342 } 1362 }
1343 #endif 1363 #endif
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698