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 CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ | 5 #ifndef CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ |
6 #define CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ | 6 #define CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 ChromeRenderProcessObserver* chrome_render_process_observer); | 44 ChromeRenderProcessObserver* chrome_render_process_observer); |
45 virtual ~ChromeRenderViewObserver(); | 45 virtual ~ChromeRenderViewObserver(); |
46 | 46 |
47 private: | 47 private: |
48 // RenderViewObserver implementation. | 48 // RenderViewObserver implementation. |
49 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 49 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
50 virtual void DidStartLoading() OVERRIDE; | 50 virtual void DidStartLoading() OVERRIDE; |
51 virtual void DidStopLoading() OVERRIDE; | 51 virtual void DidStopLoading() OVERRIDE; |
52 virtual void DidCommitProvisionalLoad(blink::WebLocalFrame* frame, | 52 virtual void DidCommitProvisionalLoad(blink::WebLocalFrame* frame, |
53 bool is_new_navigation) OVERRIDE; | 53 bool is_new_navigation) OVERRIDE; |
54 virtual void DetailedConsoleMessageAdded(const base::string16& message, | |
55 const base::string16& source, | |
56 const base::string16& stack_trace, | |
57 int32 line_number, | |
58 int32 severity_level) OVERRIDE; | |
59 virtual void Navigate(const GURL& url) OVERRIDE; | 54 virtual void Navigate(const GURL& url) OVERRIDE; |
60 | 55 |
61 void OnWebUIJavaScript(const base::string16& javascript); | 56 void OnWebUIJavaScript(const base::string16& javascript); |
62 void OnSetClientSidePhishingDetection(bool enable_phishing_detection); | 57 void OnSetClientSidePhishingDetection(bool enable_phishing_detection); |
63 void OnSetName(const std::string& name); | 58 void OnSetName(const std::string& name); |
64 void OnSetVisuallyDeemphasized(bool deemphasized); | 59 void OnSetVisuallyDeemphasized(bool deemphasized); |
65 void OnGetFPS(); | 60 void OnGetFPS(); |
66 #if defined(OS_ANDROID) | 61 #if defined(OS_ANDROID) |
67 void OnUpdateTopControlsState(content::TopControlsState constraints, | 62 void OnUpdateTopControlsState(content::TopControlsState constraints, |
68 content::TopControlsState current, | 63 content::TopControlsState current, |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 // A color page overlay when visually de-emaphasized. | 107 // A color page overlay when visually de-emaphasized. |
113 scoped_ptr<WebViewColorOverlay> dimmed_color_overlay_; | 108 scoped_ptr<WebViewColorOverlay> dimmed_color_overlay_; |
114 | 109 |
115 // Used to delay calling CapturePageInfo. | 110 // Used to delay calling CapturePageInfo. |
116 base::Timer capture_timer_; | 111 base::Timer capture_timer_; |
117 | 112 |
118 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); | 113 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); |
119 }; | 114 }; |
120 | 115 |
121 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ | 116 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ |
OLD | NEW |