OLD | NEW |
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 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 void Redo(); | 285 void Redo(); |
286 void Cut(); | 286 void Cut(); |
287 void Copy(); | 287 void Copy(); |
288 void CopyToFindPboard(); | 288 void CopyToFindPboard(); |
289 void Paste(); | 289 void Paste(); |
290 void ToggleSpellCheck(); | 290 void ToggleSpellCheck(); |
291 void Delete(); | 291 void Delete(); |
292 void SelectAll(); | 292 void SelectAll(); |
293 void ToggleSpellPanel(bool is_currently_visible); | 293 void ToggleSpellPanel(bool is_currently_visible); |
294 | 294 |
295 // Downloads an image notifying the FavIcon delegate appropriately. The | 295 // Downloads an image notifying the favicon delegate appropriately. The |
296 // returned integer uniquely identifies the download for the lifetime of the | 296 // returned integer uniquely identifies the download for the lifetime of the |
297 // browser. | 297 // browser. |
298 int DownloadFavIcon(const GURL& url, int image_size); | 298 int DownloadFavicon(const GURL& url, int image_size); |
299 | 299 |
300 // Requests application info for the specified page. This is an asynchronous | 300 // Requests application info for the specified page. This is an asynchronous |
301 // request. The delegate is notified by way of OnDidGetApplicationInfo when | 301 // request. The delegate is notified by way of OnDidGetApplicationInfo when |
302 // the data is available. | 302 // the data is available. |
303 void GetApplicationInfo(int32 page_id); | 303 void GetApplicationInfo(int32 page_id); |
304 | 304 |
305 // Captures a thumbnail representation of the page. | 305 // Captures a thumbnail representation of the page. |
306 void CaptureThumbnail(); | 306 void CaptureThumbnail(); |
307 | 307 |
308 // Captures a snapshot of the page. | 308 // Captures a snapshot of the page. |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
565 const SkBitmap& bitmap); | 565 const SkBitmap& bitmap); |
566 void OnMsgScreenshot(const SkBitmap& bitmap); | 566 void OnMsgScreenshot(const SkBitmap& bitmap); |
567 void OnMsgClose(); | 567 void OnMsgClose(); |
568 void OnMsgRequestMove(const gfx::Rect& pos); | 568 void OnMsgRequestMove(const gfx::Rect& pos); |
569 void OnMsgDidStartLoading(); | 569 void OnMsgDidStartLoading(); |
570 void OnMsgDidStopLoading(); | 570 void OnMsgDidStopLoading(); |
571 void OnMsgDidChangeLoadProgress(double load_progress); | 571 void OnMsgDidChangeLoadProgress(double load_progress); |
572 void OnMsgDocumentAvailableInMainFrame(); | 572 void OnMsgDocumentAvailableInMainFrame(); |
573 void OnMsgDocumentOnLoadCompletedInMainFrame(int32 page_id); | 573 void OnMsgDocumentOnLoadCompletedInMainFrame(int32 page_id); |
574 void OnExecuteCodeFinished(int request_id, bool success); | 574 void OnExecuteCodeFinished(int request_id, bool success); |
575 void OnMsgUpdateFavIconURL(int32 page_id, const GURL& icon_url); | 575 void OnMsgUpdateFaviconURL(int32 page_id, const GURL& icon_url); |
576 void OnMsgDidDownloadFavIcon(int id, | 576 void OnMsgDidDownloadFavicon(int id, |
577 const GURL& image_url, | 577 const GURL& image_url, |
578 bool errored, | 578 bool errored, |
579 const SkBitmap& image_data); | 579 const SkBitmap& image_data); |
580 void OnMsgContextMenu(const ContextMenuParams& params); | 580 void OnMsgContextMenu(const ContextMenuParams& params); |
581 void OnMsgOpenURL(const GURL& url, const GURL& referrer, | 581 void OnMsgOpenURL(const GURL& url, const GURL& referrer, |
582 WindowOpenDisposition disposition); | 582 WindowOpenDisposition disposition); |
583 void OnMsgDidContentsPreferredSizeChange(const gfx::Size& new_size); | 583 void OnMsgDidContentsPreferredSizeChange(const gfx::Size& new_size); |
584 void OnMsgDomOperationResponse(const std::string& json_string, | 584 void OnMsgDomOperationResponse(const std::string& json_string, |
585 int automation_id); | 585 int automation_id); |
586 void OnMsgWebUISend(const GURL& source_url, | 586 void OnMsgWebUISend(const GURL& source_url, |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
727 // The termination status of the last render view that terminated. | 727 // The termination status of the last render view that terminated. |
728 base::TerminationStatus render_view_termination_status_; | 728 base::TerminationStatus render_view_termination_status_; |
729 | 729 |
730 // The enabled/disabled states of various commands. | 730 // The enabled/disabled states of various commands. |
731 std::map<RenderViewCommand, CommandState> command_states_; | 731 std::map<RenderViewCommand, CommandState> command_states_; |
732 | 732 |
733 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 733 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
734 }; | 734 }; |
735 | 735 |
736 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 736 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
OLD | NEW |