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

Side by Side Diff: chrome/browser/renderer_host/render_widget_host_view_win.h

Issue 6024008: Consider the popup window position when the window shows upward. This patch depends on WebKit patch. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Use SetBounds(). Created 9 years, 10 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include <atlbase.h> 9 #include <atlbase.h>
10 #include <atlapp.h> 10 #include <atlapp.h>
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 END_MSG_MAP() 123 END_MSG_MAP()
124 124
125 // Implementation of RenderWidgetHostView: 125 // Implementation of RenderWidgetHostView:
126 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, 126 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view,
127 const gfx::Rect& pos); 127 const gfx::Rect& pos);
128 virtual void InitAsFullscreen(RenderWidgetHostView* parent_host_view); 128 virtual void InitAsFullscreen(RenderWidgetHostView* parent_host_view);
129 virtual RenderWidgetHost* GetRenderWidgetHost() const; 129 virtual RenderWidgetHost* GetRenderWidgetHost() const;
130 virtual void DidBecomeSelected(); 130 virtual void DidBecomeSelected();
131 virtual void WasHidden(); 131 virtual void WasHidden();
132 virtual void SetSize(const gfx::Size& size); 132 virtual void SetSize(const gfx::Size& size);
133 virtual void SetBounds(const gfx::rect& rect);
133 virtual gfx::NativeView GetNativeView(); 134 virtual gfx::NativeView GetNativeView();
134 virtual void MovePluginWindows( 135 virtual void MovePluginWindows(
135 const std::vector<webkit::npapi::WebPluginGeometry>& moves); 136 const std::vector<webkit::npapi::WebPluginGeometry>& moves);
136 virtual void Focus(); 137 virtual void Focus();
137 virtual void Blur(); 138 virtual void Blur();
138 virtual bool HasFocus(); 139 virtual bool HasFocus();
139 virtual void Show(); 140 virtual void Show();
140 virtual void Hide(); 141 virtual void Hide();
141 virtual bool IsShowing(); 142 virtual bool IsShowing();
142 virtual gfx::Rect GetViewBounds() const; 143 virtual gfx::Rect GetViewBounds() const;
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 WebKit::WebTextInputType text_input_type_; 352 WebKit::WebTextInputType text_input_type_;
352 353
353 ScopedVector<ui::ViewProp> props_; 354 ScopedVector<ui::ViewProp> props_;
354 355
355 scoped_ptr<ui::ViewProp> accessibility_prop_; 356 scoped_ptr<ui::ViewProp> accessibility_prop_;
356 357
357 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); 358 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin);
358 }; 359 };
359 360
360 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ 361 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698