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

Side by Side Diff: chrome/browser/views/tab_contents/tab_contents_view_win.h

Issue 147202: Added support for Text only zoom... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 6 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 | Annotate | Revision Log
OLDNEW
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_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ 5 #ifndef CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_
6 #define CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ 6 #define CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_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/tab_contents_view.h" 10 #include "chrome/browser/tab_contents/tab_contents_view.h"
11 #include "chrome/common/page_zoom.h"
11 #include "views/widget/widget_win.h" 12 #include "views/widget/widget_win.h"
12 13
13 class RenderViewContextMenuWin; 14 class RenderViewContextMenuWin;
14 class SadTabView; 15 class SadTabView;
15 struct WebDropData; 16 struct WebDropData;
16 class WebDropTarget; 17 class WebDropTarget;
17 18
18 // Windows-specific implementation of the TabContentsView. It is a HWND that 19 // Windows-specific implementation of the TabContentsView. It is a HWND that
19 // contains all of the contents of the tab and associated child views. 20 // contains all of the contents of the tab and associated child views.
20 class TabContentsViewWin : public TabContentsView, 21 class TabContentsViewWin : public TabContentsView,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // shown or hidden. 78 // shown or hidden.
78 void WasHidden(); 79 void WasHidden();
79 void WasShown(); 80 void WasShown();
80 81
81 // Handles resizing of the contents. This will notify the RenderWidgetHostView 82 // Handles resizing of the contents. This will notify the RenderWidgetHostView
82 // of the change, reposition popups, and the find in page bar. 83 // of the change, reposition popups, and the find in page bar.
83 void WasSized(const gfx::Size& size); 84 void WasSized(const gfx::Size& size);
84 85
85 // TODO(brettw) comment these. They're confusing. 86 // TODO(brettw) comment these. They're confusing.
86 bool ScrollZoom(int scroll_type); 87 bool ScrollZoom(int scroll_type);
87 void WheelZoom(int distance); 88 void WheelZoom(PageZoom::Function zoom_type);
88 89
89 // --------------------------------------------------------------------------- 90 // ---------------------------------------------------------------------------
90 91
91 // A drop target object that handles drags over this TabContents. 92 // A drop target object that handles drags over this TabContents.
92 scoped_refptr<WebDropTarget> drop_target_; 93 scoped_refptr<WebDropTarget> drop_target_;
93 94
94 // Used to render the sad tab. This will be non-NULL only when the sad tab is 95 // Used to render the sad tab. This will be non-NULL only when the sad tab is
95 // visible. 96 // visible.
96 scoped_ptr<SadTabView> sad_tab_; 97 scoped_ptr<SadTabView> sad_tab_;
97 98
98 // Whether to ignore the next CHAR keyboard event. 99 // Whether to ignore the next CHAR keyboard event.
99 bool ignore_next_char_event_; 100 bool ignore_next_char_event_;
100 101
101 // The id used in the ViewStorage to store the last focused view. 102 // The id used in the ViewStorage to store the last focused view.
102 int last_focused_view_storage_id_; 103 int last_focused_view_storage_id_;
103 104
104 // The context menu. Callbacks are asynchronous so we need to keep it around. 105 // The context menu. Callbacks are asynchronous so we need to keep it around.
105 scoped_ptr<RenderViewContextMenuWin> context_menu_; 106 scoped_ptr<RenderViewContextMenuWin> context_menu_;
106 107
107 DISALLOW_COPY_AND_ASSIGN(TabContentsViewWin); 108 DISALLOW_COPY_AND_ASSIGN(TabContentsViewWin);
108 }; 109 };
109 110
110 #endif // CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_ 111 #endif // CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/views/tab_contents/tab_contents_view_gtk.cc ('k') | chrome/browser/views/tab_contents/tab_contents_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698