OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_ |
6 #define CHROME_RENDERER_RENDER_VIEW_H_ | 6 #define CHROME_RENDERER_RENDER_VIEW_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 int delay_seconds_for_form_state_sync() const { | 330 int delay_seconds_for_form_state_sync() const { |
331 return delay_seconds_for_form_state_sync_; | 331 return delay_seconds_for_form_state_sync_; |
332 } | 332 } |
333 void set_delay_seconds_for_form_state_sync(int delay_in_seconds) { | 333 void set_delay_seconds_for_form_state_sync(int delay_in_seconds) { |
334 delay_seconds_for_form_state_sync_ = delay_in_seconds; | 334 delay_seconds_for_form_state_sync_ = delay_in_seconds; |
335 } | 335 } |
336 | 336 |
337 private: | 337 private: |
338 FRIEND_TEST(RenderViewTest, OnLoadAlternateHTMLText); | 338 FRIEND_TEST(RenderViewTest, OnLoadAlternateHTMLText); |
339 FRIEND_TEST(RenderViewTest, OnNavStateChanged); | 339 FRIEND_TEST(RenderViewTest, OnNavStateChanged); |
| 340 FRIEND_TEST(RenderViewTest, OnImeStateChanged); |
340 | 341 |
341 explicit RenderView(RenderThreadBase* render_thread); | 342 explicit RenderView(RenderThreadBase* render_thread); |
342 | 343 |
343 // Initializes this view with the given parent and ID. The |routing_id| can be | 344 // Initializes this view with the given parent and ID. The |routing_id| can be |
344 // set to 'MSG_ROUTING_NONE' if the true ID is not yet known. In this case, | 345 // set to 'MSG_ROUTING_NONE' if the true ID is not yet known. In this case, |
345 // CompleteInit must be called later with the true ID. | 346 // CompleteInit must be called later with the true ID. |
346 void Init(gfx::NativeViewId parent, | 347 void Init(gfx::NativeViewId parent, |
347 base::WaitableEvent* modal_dialog_event, // takes ownership | 348 base::WaitableEvent* modal_dialog_event, // takes ownership |
348 int32 opener_id, | 349 int32 opener_id, |
349 const WebPreferences& webkit_prefs, | 350 const WebPreferences& webkit_prefs, |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
740 // Time in seconds of the delay between syncing page state such as form | 741 // Time in seconds of the delay between syncing page state such as form |
741 // elements and scroll position. This timeout allows us to avoid spamming the | 742 // elements and scroll position. This timeout allows us to avoid spamming the |
742 // browser process with every little thing that changes. This normally doesn't | 743 // browser process with every little thing that changes. This normally doesn't |
743 // change but is overridden by tests. | 744 // change but is overridden by tests. |
744 int delay_seconds_for_form_state_sync_; | 745 int delay_seconds_for_form_state_sync_; |
745 | 746 |
746 DISALLOW_COPY_AND_ASSIGN(RenderView); | 747 DISALLOW_COPY_AND_ASSIGN(RenderView); |
747 }; | 748 }; |
748 | 749 |
749 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 750 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |