Home | History | Annotate | Download | only in panels

Lines Matching defs:Panel

5 #include "chrome/browser/ui/panels/panel.h"
51 PanelExtensionWindowController(Panel* panel, Profile* profile);
68 Panel* panel_; // Weak pointer. Owns us.
73 Panel* panel, Profile* profile)
74 : extensions::WindowController(panel, profile),
75 panel_(panel) {
156 Panel::~Panel() {
159 // Invoked by native panel destructor. Do not access native_panel_ here.
164 PanelManager* Panel::manager() const {
168 const std::string Panel::extension_id() const {
172 CommandUpdater* Panel::command_updater() {
176 Profile* Panel::profile() const {
180 const extensions::Extension* Panel::GetExtension() const {
188 content::WebContents* Panel::GetWebContents() const {
192 void Panel::SetExpansionState(ExpansionState new_state) {
206 content::Source<Panel>(this),
210 bool Panel::IsDrawingAttention() const {
214 void Panel::FullScreenModeChanged(bool is_full_screen) {
218 int Panel::TitleOnlyHeight() const {
222 bool Panel::CanShowMinimizeButton() const {
226 bool Panel::CanShowRestoreButton() const {
230 bool Panel::IsActive() const {
234 bool Panel::IsMaximized() const {
239 bool Panel::IsMinimized() const {
243 bool Panel::IsFullscreen() const {
247 gfx::NativeWindow Panel::GetNativeWindow() {
251 gfx::Rect Panel::GetRestoredBounds() const {
259 ui::WindowShowState Panel::GetRestoredState() const {
263 gfx::Rect Panel::GetBounds() const {
267 void Panel::Show() {
274 void Panel::Hide() {
278 void Panel::ShowInactive() {
285 // Close() may be called multiple times if the panel window is not ready to
287 void Panel::Close() {
291 void Panel::Activate() {
299 void Panel::Deactivate() {
303 void Panel::Maximize() {
307 void Panel::Minimize() {
312 bool Panel::IsMinimizedBySystem() const {
316 bool Panel::IsShownOnActiveDesktop() const {
320 void Panel::ShowShadow(bool show) {
324 void Panel::Restore() {
329 void Panel::SetBounds(const gfx::Rect& bounds) {
330 // Ignore bounds position as the panel manager controls all positioning.
337 void Panel::FlashFrame(bool draw_attention) {
341 // Don't draw attention for an active panel.
345 // Invoking native panel to draw attention must be done before informing the
346 // panel collection because it needs to check internal state of the panel to
347 // determine if the panel has been drawing attention.
352 bool Panel::IsAlwaysOnTop() const {
356 void Panel::SetAlwaysOnTop(bool on_top) {
360 void Panel::ExecuteCommandWithDisposition(int id,
435 void Panel::Observe(int type,
455 void Panel::OnTitlebarClicked(panel::ClickModifier modifier) {
462 // activate a minimized panel on mouse-down regardless of our attempts to
464 // See Panel::OnActiveStateChanged().
466 // panel has been expanded. If the panel is in a stack, the titlebar click
467 // might minimize the panel and we do not want to activate it to make it
476 void Panel::OnMinimizeButtonClicked(panel::ClickModifier modifier) {
481 void Panel::OnRestoreButtonClicked(panel::ClickModifier modifier) {
486 void Panel::OnWindowSizeAvailable() {
490 void Panel::OnNativePanelClosed() {
498 StackedPanelCollection* Panel::stack() const {
503 panel::Resizability Panel::CanResizeByMouse() const {
505 return panel::NOT_RESIZABLE;
510 void Panel::Initialize(const GURL& url,
552 void Panel::SetPanelBounds(const gfx::Rect& bounds) {
557 void Panel::SetPanelBoundsInstantly(const gfx::Rect& bounds) {
561 void Panel::LimitSizeToWorkArea(const gfx::Rect& work_area) {
582 void Panel::SetAutoResizable(bool resizable) {
604 void Panel::EnableWebContentsAutoResize(content::WebContents* web_contents) {
620 void Panel::OnContentsAutoResized(const gfx::Size& new_content_size) {
629 // This reduces extra resizes when panel is first shown.
638 void Panel::OnWindowResizedByMouse(const gfx::Rect& new_bounds) {
643 void Panel::SetSizeRange(const gfx::Size& min_size, const gfx::Size& max_size) {
655 void Panel::IncreaseMaxSize(const gfx::Size& desired_panel_size) {
665 void Panel::HandleKeyboardEvent(const content::NativeWebKeyboardEvent& event) {
669 void Panel::SetPreviewMode(bool in_preview) {
674 void Panel::UpdateMinimizeRestoreButtonVisibility() {
678 gfx::Size Panel::ClampSize(const gfx::Size& size) const {
679 // The panel width:
687 // The panel height:
698 void Panel::OnActiveStateChanged(bool active) {
699 // Clear attention state when an expanded panel becomes active.
700 // On some systems (e.g. Win), mouse-down activates a panel regardless of
704 // See Panel::OnTitlebarClicked().
721 content::Source<Panel>(this),
725 void Panel::OnPanelStartUserResizing() {
731 void Panel::OnPanelEndUserResizing() {
735 bool Panel::ShouldCloseWindow() {
739 void Panel::OnWindowClosing() {
746 bool Panel::ExecuteCommandIfEnabled(int id) {
755 base::string16 Panel::GetWindowTitle() const {
771 gfx::Image Panel::GetCurrentPageIcon() const {
775 void Panel::UpdateTitleBar() {
779 void Panel::LoadingStateChanged(bool is_loading) {
785 void Panel::WebContentsFocused(content::WebContents* contents) {
789 void Panel::MoveByInstantly(const gfx::Vector2d& delta_origin) {
795 void Panel::SetWindowCornerStyle(panel::CornerStyle corner_style) {
799 void Panel::MinimizeBySystem() {
803 Panel::Panel(Profile* profile, const std::string& app_name,
821 void Panel::OnImageLoaded(const gfx::Image& image) {
829 content::Source<Panel>(this),
833 void Panel::InitCommandState() {
862 void Panel::ConfigureAutoResize(content::WebContents* web_contents) {
876 void Panel::UpdateAppIcon() {
890 base::Bind(&Panel::OnImageLoaded,
895 void Panel::FormatTitleForDisplay(base::string16* title) {