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

Side by Side Diff: chrome/browser/ui/autofill/popup_controller_common.h

Issue 342833002: [Password Generation] Update Aura UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Coments Created 6 years, 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_UI_AUTOFILL_POPUP_CONTROLLER_COMMON_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_POPUP_CONTROLLER_COMMON_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_POPUP_CONTROLLER_COMMON_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_POPUP_CONTROLLER_COMMON_H_
7 7
8 #include "content/public/browser/render_widget_host.h" 8 #include "content/public/browser/render_widget_host.h"
9 #include "ui/gfx/native_widget_types.h" 9 #include "ui/gfx/native_widget_types.h"
10 #include "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
(...skipping 24 matching lines...) Expand all
35 const gfx::RectF& element_bounds() const { return element_bounds_; } 35 const gfx::RectF& element_bounds() const { return element_bounds_; }
36 gfx::NativeView container_view() { return container_view_; } 36 gfx::NativeView container_view() { return container_view_; }
37 content::WebContents* web_contents() { return web_contents_; } 37 content::WebContents* web_contents() { return web_contents_; }
38 38
39 // Returns the enclosing rectangle for |element_bounds_|. 39 // Returns the enclosing rectangle for |element_bounds_|.
40 const gfx::Rect RoundedElementBounds() const; 40 const gfx::Rect RoundedElementBounds() const;
41 41
42 // Returns the bounds that the popup should be placed at, given the desired 42 // Returns the bounds that the popup should be placed at, given the desired
43 // width and height. By default this places the popup below |element_bounds| 43 // width and height. By default this places the popup below |element_bounds|
44 // but it will be placed above if there isn't enough space. 44 // but it will be placed above if there isn't enough space.
45 gfx::Rect GetPopupBounds(int desired_height, int desired_width) const; 45 gfx::Rect GetPopupBounds(int desired_width, int desired_height) const;
46 46
47 // Callback used to register with RenderViewHost. This can only be set once, 47 // Callback used to register with RenderViewHost. This can only be set once,
48 // or else a callback may be registered that will not be removed 48 // or else a callback may be registered that will not be removed
49 // (crbug.com/338070). Call will crash if callback is already set. 49 // (crbug.com/338070). Call will crash if callback is already set.
50 void SetKeyPressCallback(content::RenderWidgetHost::KeyPressEventCallback); 50 void SetKeyPressCallback(content::RenderWidgetHost::KeyPressEventCallback);
51 51
52 // Register listener for key press events with the current RenderViewHost 52 // Register listener for key press events with the current RenderViewHost
53 // associated with |web_contents_|. If callback has already been registered, 53 // associated with |web_contents_|. If callback has already been registered,
54 // this has no effect. 54 // this has no effect.
55 void RegisterKeyPressCallback(); 55 void RegisterKeyPressCallback();
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 content::RenderViewHost* key_press_event_target_; 96 content::RenderViewHost* key_press_event_target_;
97 97
98 content::RenderWidgetHost::KeyPressEventCallback key_press_event_callback_; 98 content::RenderWidgetHost::KeyPressEventCallback key_press_event_callback_;
99 99
100 DISALLOW_COPY_AND_ASSIGN(PopupControllerCommon); 100 DISALLOW_COPY_AND_ASSIGN(PopupControllerCommon);
101 }; 101 };
102 102
103 } // namespace autofill 103 } // namespace autofill
104 104
105 #endif // CHROME_BROWSER_UI_AUTOFILL_POPUP_CONTROLLER_COMMON_H_ 105 #endif // CHROME_BROWSER_UI_AUTOFILL_POPUP_CONTROLLER_COMMON_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/password_generation_popup_view.cc ('k') | chrome/browser/ui/autofill/popup_controller_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698