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

Side by Side Diff: ui/keyboard/keyboard_controller_proxy.h

Issue 159473002: Restore screen work area after login (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit and change HasKeyboardWindow to virtual function Created 6 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
« no previous file with comments | « ui/keyboard/keyboard_controller.cc ('k') | ui/keyboard/keyboard_controller_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 UI_KEYBOARD_KEYBOARD_CONTROLLER_PROXY_H_ 5 #ifndef UI_KEYBOARD_KEYBOARD_CONTROLLER_PROXY_H_
6 #define UI_KEYBOARD_KEYBOARD_CONTROLLER_PROXY_H_ 6 #define UI_KEYBOARD_KEYBOARD_CONTROLLER_PROXY_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/public/common/media_stream_request.h" 9 #include "content/public/common/media_stream_request.h"
10 #include "ui/base/ime/text_input_type.h" 10 #include "ui/base/ime/text_input_type.h"
(...skipping 26 matching lines...) Expand all
37 // Gets the virtual keyboard window. Ownership of the returned Window remains 37 // Gets the virtual keyboard window. Ownership of the returned Window remains
38 // with the proxy. 38 // with the proxy.
39 virtual aura::Window* GetKeyboardWindow(); 39 virtual aura::Window* GetKeyboardWindow();
40 40
41 // Sets the override content url. 41 // Sets the override content url.
42 void SetOverrideContentUrl(const GURL& url); 42 void SetOverrideContentUrl(const GURL& url);
43 43
44 // Whether the keyboard window is resizing from its web contents. 44 // Whether the keyboard window is resizing from its web contents.
45 bool resizing_from_contents() const { return resizing_from_contents_; } 45 bool resizing_from_contents() const { return resizing_from_contents_; }
46 46
47 // Whether the keyboard window is created. The keyboard window is tied to a
48 // WebContent so we can just check if the WebContent is created or not.
49 virtual bool HasKeyboardWindow() const;
50
47 // Sets the flag of whether the keyboard window is resizing from 51 // Sets the flag of whether the keyboard window is resizing from
48 // its web contents. 52 // its web contents.
49 void set_resizing_from_contents(bool resizing) { 53 void set_resizing_from_contents(bool resizing) {
50 resizing_from_contents_ = resizing; 54 resizing_from_contents_ = resizing;
51 } 55 }
52 56
53 // Gets the InputMethod that will provide notifications about changes in the 57 // Gets the InputMethod that will provide notifications about changes in the
54 // text input context. 58 // text input context.
55 virtual ui::InputMethod* GetInputMethod() = 0; 59 virtual ui::InputMethod* GetInputMethod() = 0;
56 60
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 107
104 // Whether the current keyboard window is resizing from its web content. 108 // Whether the current keyboard window is resizing from its web content.
105 bool resizing_from_contents_; 109 bool resizing_from_contents_;
106 110
107 DISALLOW_COPY_AND_ASSIGN(KeyboardControllerProxy); 111 DISALLOW_COPY_AND_ASSIGN(KeyboardControllerProxy);
108 }; 112 };
109 113
110 } // namespace keyboard 114 } // namespace keyboard
111 115
112 #endif // UI_KEYBOARD_KEYBOARD_CONTROLLER_PROXY_H_ 116 #endif // UI_KEYBOARD_KEYBOARD_CONTROLLER_PROXY_H_
OLDNEW
« no previous file with comments | « ui/keyboard/keyboard_controller.cc ('k') | ui/keyboard/keyboard_controller_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698