| 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_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ |
| 7 | 7 |
| 8 #include "base/gfx/size.h" | 8 #include "base/gfx/size.h" |
| 9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
| 10 #include "chrome/browser/tab_contents/web_contents_view.h" | 10 #include "chrome/browser/tab_contents/web_contents_view.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 virtual gfx::NativeView GetContentNativeView() const; | 35 virtual gfx::NativeView GetContentNativeView() const; |
| 36 virtual gfx::NativeWindow GetTopLevelNativeWindow() const; | 36 virtual gfx::NativeWindow GetTopLevelNativeWindow() const; |
| 37 virtual void GetContainerBounds(gfx::Rect* out) const; | 37 virtual void GetContainerBounds(gfx::Rect* out) const; |
| 38 virtual void OnContentsDestroy(); | 38 virtual void OnContentsDestroy(); |
| 39 virtual void SetPageTitle(const std::wstring& title); | 39 virtual void SetPageTitle(const std::wstring& title); |
| 40 virtual void Invalidate(); | 40 virtual void Invalidate(); |
| 41 virtual void SizeContents(const gfx::Size& size); | 41 virtual void SizeContents(const gfx::Size& size); |
| 42 virtual void SetInitialFocus(); | 42 virtual void SetInitialFocus(); |
| 43 virtual void StoreFocus(); | 43 virtual void StoreFocus(); |
| 44 virtual void RestoreFocus(); | 44 virtual void RestoreFocus(); |
| 45 virtual void SetChildSize(RenderWidgetHostView* rwh_view); |
| 45 | 46 |
| 46 // Backend implementation of RenderViewHostDelegate::View. | 47 // Backend implementation of RenderViewHostDelegate::View. |
| 47 virtual void ShowContextMenu(const ContextMenuParams& params); | 48 virtual void ShowContextMenu(const ContextMenuParams& params); |
| 48 virtual void StartDragging(const WebDropData& drop_data); | 49 virtual void StartDragging(const WebDropData& drop_data); |
| 49 virtual void UpdateDragCursor(bool is_drop_target); | 50 virtual void UpdateDragCursor(bool is_drop_target); |
| 50 virtual void TakeFocus(bool reverse); | 51 virtual void TakeFocus(bool reverse); |
| 51 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); | 52 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); |
| 52 | 53 |
| 53 private: | 54 private: |
| 54 // Windows events ------------------------------------------------------------ | 55 // Windows events ------------------------------------------------------------ |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 // Whether to ignore the next CHAR keyboard event. | 98 // Whether to ignore the next CHAR keyboard event. |
| 98 bool ignore_next_char_event_; | 99 bool ignore_next_char_event_; |
| 99 | 100 |
| 100 // The id used in the ViewStorage to store the last focused view. | 101 // The id used in the ViewStorage to store the last focused view. |
| 101 int last_focused_view_storage_id_; | 102 int last_focused_view_storage_id_; |
| 102 | 103 |
| 103 DISALLOW_COPY_AND_ASSIGN(WebContentsViewWin); | 104 DISALLOW_COPY_AND_ASSIGN(WebContentsViewWin); |
| 104 }; | 105 }; |
| 105 | 106 |
| 106 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ | 107 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ |
| OLD | NEW |