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

Side by Side Diff: content/renderer/render_view_impl.h

Issue 14139013: Hide location bar on Javascript-initiated scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore handling of ViewMsg_UpdateTopControlsState in RenderViewImpl. Created 7 years, 7 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
OLDNEW
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>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "base/gtest_prod_util.h" 15 #include "base/gtest_prod_util.h"
16 #include "base/id_map.h" 16 #include "base/id_map.h"
17 #include "base/memory/linked_ptr.h" 17 #include "base/memory/linked_ptr.h"
18 #include "base/memory/weak_ptr.h" 18 #include "base/memory/weak_ptr.h"
19 #include "base/observer_list.h" 19 #include "base/observer_list.h"
20 #include "base/process.h" 20 #include "base/process.h"
21 #include "base/timer.h" 21 #include "base/timer.h"
22 #include "build/build_config.h" 22 #include "build/build_config.h"
23 #include "cc/input/top_controls_state.h"
23 #include "content/common/content_export.h" 24 #include "content/common/content_export.h"
24 #include "content/common/drag_event_source_info.h" 25 #include "content/common/drag_event_source_info.h"
25 #include "content/common/edit_command.h" 26 #include "content/common/edit_command.h"
26 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" 27 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h"
27 #include "content/common/navigation_gesture.h" 28 #include "content/common/navigation_gesture.h"
28 #include "content/common/view_message_enums.h" 29 #include "content/common/view_message_enums.h"
29 #include "content/public/common/javascript_message_type.h" 30 #include "content/public/common/javascript_message_type.h"
30 #include "content/public/common/page_zoom.h" 31 #include "content/public/common/page_zoom.h"
31 #include "content/public/common/referrer.h" 32 #include "content/public/common/referrer.h"
32 #include "content/public/common/renderer_preferences.h" 33 #include "content/public/common/renderer_preferences.h"
(...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 WebKit::WebFrame* frame, 719 WebKit::WebFrame* frame,
719 const WebKit::WebURLRequest& request, 720 const WebKit::WebURLRequest& request,
720 WebKit::WebNavigationPolicy policy) OVERRIDE; 721 WebKit::WebNavigationPolicy policy) OVERRIDE;
721 virtual void Repaint(const gfx::Size& size) OVERRIDE; 722 virtual void Repaint(const gfx::Size& size) OVERRIDE;
722 virtual void SetEditCommandForNextKeyEvent(const std::string& name, 723 virtual void SetEditCommandForNextKeyEvent(const std::string& name,
723 const std::string& value) OVERRIDE; 724 const std::string& value) OVERRIDE;
724 virtual void ClearEditCommands() OVERRIDE; 725 virtual void ClearEditCommands() OVERRIDE;
725 virtual SSLStatus GetSSLStatusOfFrame(WebKit::WebFrame* frame) const OVERRIDE; 726 virtual SSLStatus GetSSLStatusOfFrame(WebKit::WebFrame* frame) const OVERRIDE;
726 #if defined(OS_ANDROID) 727 #if defined(OS_ANDROID)
727 virtual skia::RefPtr<SkPicture> CapturePicture() OVERRIDE; 728 virtual skia::RefPtr<SkPicture> CapturePicture() OVERRIDE;
729 virtual void UpdateTopControlsState(cc::TopControlsState constraints,
730 cc::TopControlsState current,
731 bool animate) OVERRIDE;
728 #endif 732 #endif
729 733
730 // webkit_glue::WebPluginPageDelegate implementation ------------------------- 734 // webkit_glue::WebPluginPageDelegate implementation -------------------------
731 735
732 virtual webkit::npapi::WebPluginDelegate* CreatePluginDelegate( 736 virtual webkit::npapi::WebPluginDelegate* CreatePluginDelegate(
733 const base::FilePath& file_path, 737 const base::FilePath& file_path,
734 const std::string& mime_type) OVERRIDE; 738 const std::string& mime_type) OVERRIDE;
735 virtual WebKit::WebPlugin* CreatePluginReplacement( 739 virtual WebKit::WebPlugin* CreatePluginReplacement(
736 const base::FilePath& file_path) OVERRIDE; 740 const base::FilePath& file_path) OVERRIDE;
737 virtual void CreatedPluginWindow(gfx::PluginWindowHandle handle) OVERRIDE; 741 virtual void CreatedPluginWindow(gfx::PluginWindowHandle handle) OVERRIDE;
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
1529 // use the Observer interface to filter IPC messages and receive frame change 1533 // use the Observer interface to filter IPC messages and receive frame change
1530 // notifications. 1534 // notifications.
1531 // --------------------------------------------------------------------------- 1535 // ---------------------------------------------------------------------------
1532 1536
1533 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1537 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1534 }; 1538 };
1535 1539
1536 } // namespace content 1540 } // namespace content
1537 1541
1538 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1542 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698