OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_RENDER_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 virtual void didAddMessageToConsole( | 399 virtual void didAddMessageToConsole( |
400 const blink::WebConsoleMessage& message, | 400 const blink::WebConsoleMessage& message, |
401 const blink::WebString& source_name, | 401 const blink::WebString& source_name, |
402 unsigned source_line, | 402 unsigned source_line, |
403 const blink::WebString& stack_trace); | 403 const blink::WebString& stack_trace); |
404 virtual void printPage(blink::WebFrame* frame); | 404 virtual void printPage(blink::WebFrame* frame); |
405 virtual blink::WebNotificationPresenter* notificationPresenter(); | 405 virtual blink::WebNotificationPresenter* notificationPresenter(); |
406 virtual bool enumerateChosenDirectory( | 406 virtual bool enumerateChosenDirectory( |
407 const blink::WebString& path, | 407 const blink::WebString& path, |
408 blink::WebFileChooserCompletion* chooser_completion); | 408 blink::WebFileChooserCompletion* chooser_completion); |
| 409 // DEPRECATED |
409 virtual void didStartLoading(bool to_different_document); | 410 virtual void didStartLoading(bool to_different_document); |
410 // DEPRECATED | 411 // DEPRECATED |
411 virtual void didStartLoading(); | |
412 virtual void didStopLoading(); | 412 virtual void didStopLoading(); |
| 413 virtual void didStartLoading(blink::WebFrame* frame); |
| 414 virtual void didStopLoading(blink::WebFrame* frame); |
413 virtual void didChangeLoadProgress(blink::WebFrame* frame, | 415 virtual void didChangeLoadProgress(blink::WebFrame* frame, |
414 double load_progress); | 416 double load_progress); |
415 virtual void didCancelCompositionOnSelectionChange(); | 417 virtual void didCancelCompositionOnSelectionChange(); |
416 virtual void didChangeSelection(bool is_selection_empty); | 418 virtual void didChangeSelection(bool is_selection_empty); |
417 virtual void didExecuteCommand(const blink::WebString& command_name); | 419 virtual void didExecuteCommand(const blink::WebString& command_name); |
418 virtual bool handleCurrentKeyboardEvent(); | 420 virtual bool handleCurrentKeyboardEvent(); |
419 virtual blink::WebColorChooser* createColorChooser( | 421 virtual blink::WebColorChooser* createColorChooser( |
420 blink::WebColorChooserClient*, | 422 blink::WebColorChooserClient*, |
421 const blink::WebColor& initial_color, | 423 const blink::WebColor& initial_color, |
422 const blink::WebVector<blink::WebColorSuggestion>& suggestions); | 424 const blink::WebVector<blink::WebColorSuggestion>& suggestions); |
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1126 // If a render view is set to the minimum size of its content, webkit may add | 1128 // If a render view is set to the minimum size of its content, webkit may add |
1127 // scroll bars. This makes sense for fixed sized windows, but it does not | 1129 // scroll bars. This makes sense for fixed sized windows, but it does not |
1128 // make sense when the size of the view was chosen to fit the content. | 1130 // make sense when the size of the view was chosen to fit the content. |
1129 // This setting ensures that no scroll bars are drawn. The size limit exists | 1131 // This setting ensures that no scroll bars are drawn. The size limit exists |
1130 // because if the view grows beyond a size known to the browser, scroll bars | 1132 // because if the view grows beyond a size known to the browser, scroll bars |
1131 // should be drawn. | 1133 // should be drawn. |
1132 gfx::Size disable_scrollbars_size_limit_; | 1134 gfx::Size disable_scrollbars_size_limit_; |
1133 | 1135 |
1134 // Loading state ------------------------------------------------------------- | 1136 // Loading state ------------------------------------------------------------- |
1135 | 1137 |
1136 // True if the top level frame is currently being loaded. | |
1137 bool is_loading_; | |
1138 | |
1139 // The gesture that initiated the current navigation. | 1138 // The gesture that initiated the current navigation. |
1140 // TODO(nasko): Move to RenderFrame, as this is per-frame state. | 1139 // TODO(nasko): Move to RenderFrame, as this is per-frame state. |
1141 NavigationGesture navigation_gesture_; | 1140 NavigationGesture navigation_gesture_; |
1142 | 1141 |
1143 // Used for popups. | 1142 // Used for popups. |
1144 bool opened_by_user_gesture_; | 1143 bool opened_by_user_gesture_; |
1145 | 1144 |
1146 // Whether this RenderView was created by a frame that was suppressing its | 1145 // Whether this RenderView was created by a frame that was suppressing its |
1147 // opener. If so, we may want to load pages in a separate process. See | 1146 // opener. If so, we may want to load pages in a separate process. See |
1148 // decidePolicyForNavigation for details. | 1147 // decidePolicyForNavigation for details. |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1432 // use the Observer interface to filter IPC messages and receive frame change | 1431 // use the Observer interface to filter IPC messages and receive frame change |
1433 // notifications. | 1432 // notifications. |
1434 // --------------------------------------------------------------------------- | 1433 // --------------------------------------------------------------------------- |
1435 | 1434 |
1436 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1435 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1437 }; | 1436 }; |
1438 | 1437 |
1439 } // namespace content | 1438 } // namespace content |
1440 | 1439 |
1441 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1440 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |