| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_TEST_TEST_TAB_CONTENTS_VIEW_H_ | 5 #ifndef CONTENT_TEST_TEST_TAB_CONTENTS_VIEW_H_ |
| 6 #define CONTENT_TEST_TEST_TAB_CONTENTS_VIEW_H_ | 6 #define CONTENT_TEST_TEST_TAB_CONTENTS_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "content/browser/tab_contents/tab_contents_view.h" | 10 #include "content/browser/tab_contents/tab_contents_view.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 int selected_item, | 35 int selected_item, |
| 36 const std::vector<WebMenuItem>& items, | 36 const std::vector<WebMenuItem>& items, |
| 37 bool right_aligned) OVERRIDE; | 37 bool right_aligned) OVERRIDE; |
| 38 virtual void StartDragging(const WebDropData& drop_data, | 38 virtual void StartDragging(const WebDropData& drop_data, |
| 39 WebKit::WebDragOperationsMask allowed_ops, | 39 WebKit::WebDragOperationsMask allowed_ops, |
| 40 const SkBitmap& image, | 40 const SkBitmap& image, |
| 41 const gfx::Point& image_offset) OVERRIDE; | 41 const gfx::Point& image_offset) OVERRIDE; |
| 42 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; | 42 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; |
| 43 virtual void GotFocus() OVERRIDE; | 43 virtual void GotFocus() OVERRIDE; |
| 44 virtual void TakeFocus(bool reverse) OVERRIDE; | 44 virtual void TakeFocus(bool reverse) OVERRIDE; |
| 45 virtual void UpdatePreferredSize(const gfx::Size& pref_size) OVERRIDE; | |
| 46 | 45 |
| 47 // TabContentsView: | 46 // TabContentsView: |
| 48 virtual void CreateView(const gfx::Size& initial_size) OVERRIDE; | 47 virtual void CreateView(const gfx::Size& initial_size) OVERRIDE; |
| 49 virtual RenderWidgetHostView* CreateViewForWidget( | 48 virtual RenderWidgetHostView* CreateViewForWidget( |
| 50 RenderWidgetHost* render_widget_host) OVERRIDE; | 49 RenderWidgetHost* render_widget_host) OVERRIDE; |
| 51 virtual gfx::NativeView GetNativeView() const OVERRIDE; | 50 virtual gfx::NativeView GetNativeView() const OVERRIDE; |
| 52 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; | 51 virtual gfx::NativeView GetContentNativeView() const OVERRIDE; |
| 53 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; | 52 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE; |
| 54 virtual void GetContainerBounds(gfx::Rect *out) const OVERRIDE; | 53 virtual void GetContainerBounds(gfx::Rect *out) const OVERRIDE; |
| 55 virtual void SetPageTitle(const std::wstring& title) OVERRIDE; | 54 virtual void SetPageTitle(const std::wstring& title) OVERRIDE; |
| 56 virtual void OnTabCrashed(base::TerminationStatus status, | 55 virtual void OnTabCrashed(base::TerminationStatus status, |
| 57 int error_code) OVERRIDE; | 56 int error_code) OVERRIDE; |
| 58 virtual void SizeContents(const gfx::Size& size) OVERRIDE; | 57 virtual void SizeContents(const gfx::Size& size) OVERRIDE; |
| 59 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; | 58 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; |
| 60 virtual void Focus() OVERRIDE; | 59 virtual void Focus() OVERRIDE; |
| 61 virtual void SetInitialFocus() OVERRIDE; | 60 virtual void SetInitialFocus() OVERRIDE; |
| 62 virtual void StoreFocus() OVERRIDE; | 61 virtual void StoreFocus() OVERRIDE; |
| 63 virtual void RestoreFocus() OVERRIDE; | 62 virtual void RestoreFocus() OVERRIDE; |
| 64 virtual bool IsDoingDrag() const OVERRIDE; | 63 virtual bool IsDoingDrag() const OVERRIDE; |
| 65 virtual void CancelDragAndCloseTab() OVERRIDE; | 64 virtual void CancelDragAndCloseTab() OVERRIDE; |
| 66 virtual bool IsEventTracking() const OVERRIDE; | 65 virtual bool IsEventTracking() const OVERRIDE; |
| 67 virtual void CloseTabAfterEventTracking() OVERRIDE; | 66 virtual void CloseTabAfterEventTracking() OVERRIDE; |
| 68 virtual void GetViewBounds(gfx::Rect* out) const OVERRIDE; | 67 virtual void GetViewBounds(gfx::Rect* out) const OVERRIDE; |
| 69 | 68 |
| 70 private: | 69 private: |
| 71 DISALLOW_COPY_AND_ASSIGN(TestTabContentsView); | 70 DISALLOW_COPY_AND_ASSIGN(TestTabContentsView); |
| 72 }; | 71 }; |
| 73 | 72 |
| 74 #endif // CONTENT_TEST_TEST_TAB_CONTENTS_VIEW_H_ | 73 #endif // CONTENT_TEST_TEST_TAB_CONTENTS_VIEW_H_ |
| OLD | NEW |