| 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 WEBKIT_GLUE_WEBVIEW_IMPL_H_ | 5 #ifndef WEBKIT_GLUE_WEBVIEW_IMPL_H_ |
| 6 #define WEBKIT_GLUE_WEBVIEW_IMPL_H_ | 6 #define WEBKIT_GLUE_WEBVIEW_IMPL_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 class WebDevToolsAgent; | 49 class WebDevToolsAgent; |
| 50 class WebDevToolsAgentImpl; | 50 class WebDevToolsAgentImpl; |
| 51 class WebViewDelegate; | 51 class WebViewDelegate; |
| 52 | 52 |
| 53 class WebViewImpl : public WebView, public base::RefCounted<WebViewImpl> { | 53 class WebViewImpl : public WebView, public base::RefCounted<WebViewImpl> { |
| 54 public: | 54 public: |
| 55 // WebView | 55 // WebView |
| 56 virtual bool ShouldClose(); | 56 virtual bool ShouldClose(); |
| 57 virtual void Close(); | 57 virtual void Close(); |
| 58 virtual WebViewDelegate* GetDelegate(); | 58 virtual WebViewDelegate* GetDelegate(); |
| 59 virtual void SetDelegate(WebViewDelegate*); |
| 59 virtual void SetUseEditorDelegate(bool value); | 60 virtual void SetUseEditorDelegate(bool value); |
| 60 virtual void SetTabKeyCyclesThroughElements(bool value); | 61 virtual void SetTabKeyCyclesThroughElements(bool value); |
| 61 virtual WebFrame* GetMainFrame(); | 62 virtual WebFrame* GetMainFrame(); |
| 62 virtual WebFrame* GetFocusedFrame(); | 63 virtual WebFrame* GetFocusedFrame(); |
| 63 virtual void SetFocusedFrame(WebFrame* frame); | 64 virtual void SetFocusedFrame(WebFrame* frame); |
| 64 virtual WebFrame* GetFrameWithName(const std::wstring& name); | 65 virtual WebFrame* GetFrameWithName(const std::wstring& name); |
| 65 virtual WebFrame* GetPreviousFrameBefore(WebFrame* frame, bool wrap); | 66 virtual WebFrame* GetPreviousFrameBefore(WebFrame* frame, bool wrap); |
| 66 virtual WebFrame* GetNextFrameAfter(WebFrame* frame, bool wrap); | 67 virtual WebFrame* GetNextFrameAfter(WebFrame* frame, bool wrap); |
| 67 virtual void Resize(const gfx::Size& new_size); | 68 virtual void Resize(const gfx::Size& new_size); |
| 68 virtual gfx::Size GetSize() { return size(); } | 69 virtual gfx::Size GetSize() { return size(); } |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 static const WebKit::WebInputEvent* current_input_event() { | 345 static const WebKit::WebInputEvent* current_input_event() { |
| 345 return g_current_input_event; | 346 return g_current_input_event; |
| 346 } | 347 } |
| 347 private: | 348 private: |
| 348 static const WebKit::WebInputEvent* g_current_input_event; | 349 static const WebKit::WebInputEvent* g_current_input_event; |
| 349 | 350 |
| 350 DISALLOW_COPY_AND_ASSIGN(WebViewImpl); | 351 DISALLOW_COPY_AND_ASSIGN(WebViewImpl); |
| 351 }; | 352 }; |
| 352 | 353 |
| 353 #endif // WEBKIT_GLUE_WEBVIEW_IMPL_H_ | 354 #endif // WEBKIT_GLUE_WEBVIEW_IMPL_H_ |
| OLD | NEW |