OLD | NEW |
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 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 6 #define CHROME_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 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 // Informs renderer of updated content settings. | 467 // Informs renderer of updated content settings. |
468 void SendContentSettings(const GURL& url, | 468 void SendContentSettings(const GURL& url, |
469 const ContentSettings& settings); | 469 const ContentSettings& settings); |
470 | 470 |
471 // Tells the renderer to notify us when the page contents preferred size | 471 // Tells the renderer to notify us when the page contents preferred size |
472 // changed. |flags| is a combination of | 472 // changed. |flags| is a combination of |
473 // |ViewHostMsg_EnablePreferredSizeChangedMode_Flags| values, which is defined | 473 // |ViewHostMsg_EnablePreferredSizeChangedMode_Flags| values, which is defined |
474 // in render_messages.h. | 474 // in render_messages.h. |
475 void EnablePreferredSizeChangedMode(int flags); | 475 void EnablePreferredSizeChangedMode(int flags); |
476 | 476 |
| 477 #if defined(UNIT_TEST) |
| 478 // This shouldn't be necessary outside of testing. |
| 479 bool is_waiting_for_unload_ack() { return is_waiting_for_unload_ack_; } |
| 480 #endif |
| 481 |
477 protected: | 482 protected: |
478 // RenderWidgetHost protected overrides. | 483 // RenderWidgetHost protected overrides. |
479 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 484 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
480 bool* is_keyboard_shortcut); | 485 bool* is_keyboard_shortcut); |
481 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event); | 486 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event); |
482 virtual void OnUserGesture(); | 487 virtual void OnUserGesture(); |
483 virtual void NotifyRendererUnresponsive(); | 488 virtual void NotifyRendererUnresponsive(); |
484 virtual void NotifyRendererResponsive(); | 489 virtual void NotifyRendererResponsive(); |
485 virtual void OnMsgFocusedNodeChanged(); | 490 virtual void OnMsgFocusedNodeChanged(); |
486 virtual void OnMsgFocus(); | 491 virtual void OnMsgFocus(); |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
738 int autofill_query_id_; | 743 int autofill_query_id_; |
739 std::vector<string16> autofill_values_; | 744 std::vector<string16> autofill_values_; |
740 std::vector<string16> autofill_labels_; | 745 std::vector<string16> autofill_labels_; |
741 std::vector<string16> autofill_icons_; | 746 std::vector<string16> autofill_icons_; |
742 std::vector<int> autofill_unique_ids_; | 747 std::vector<int> autofill_unique_ids_; |
743 | 748 |
744 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 749 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
745 }; | 750 }; |
746 | 751 |
747 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 752 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
OLD | NEW |